1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Destroy the player after destroying JavascriptSubtitlesOctopus

This commit is contained in:
Dmitry Lyzo 2021-09-23 21:30:59 +03:00
parent 9338b36b8e
commit 9f6fdfdd72

View file

@ -675,13 +675,13 @@ function tryRemoveElement(elem) {
} }
onEndedInternal(this, elem, this.onError); onEndedInternal(this, elem, this.onError);
}
this.destroyCustomTrack(elem);
if (destroyPlayer) { if (destroyPlayer) {
this.destroy(); this.destroy();
} }
}
this.destroyCustomTrack(elem);
return Promise.resolve(); return Promise.resolve();
} }