Skip to content

Commit

Permalink
Fix: [Client][Player/PlayerWrapper] DPlayer を破棄する際にまれに発生する例外を捕捉する
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Oct 25, 2023
1 parent 50dafec commit d4d1cc1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/services/player/PlayerWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,12 @@ class PlayerWrapper {
this.player_container_resize_observer = null;

// DPlayer 本体を破棄
this.player.destroy();
// なぜか例外が出ることがあるので try-catch で囲む
try {
this.player.destroy();
} catch (e) {
// 何もしない
}
this.player = null;

// 破棄済みかどうかのフラグを立てる
Expand Down

0 comments on commit d4d1cc1

Please sign in to comment.