Skip to content

Commit

Permalink
Catch the exception if the player dom element fails when being removed (
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Jun 18, 2020
1 parent 696f926 commit 6a26436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erizo_controller/erizoClient/src/Stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ const Stream = (altConnectionHelpers, specInput) => {
that.stop = () => {
if (that.showing) {
if (that.player !== undefined) {
that.player.destroy();
try {
that.player.destroy();
} catch (e) {
log.warning(`message: Exception when destroying Player, error: ${e.message}, ${that.toLog()}`);
}
that.showing = false;
}
}
Expand Down

0 comments on commit 6a26436

Please sign in to comment.