Skip to content

Commit

Permalink
fix(JitsiConference) fix exceptions which occur after leaving the con…
Browse files Browse the repository at this point in the history
…ference

Fixes issue #1476
Alternative to PR #1487
  • Loading branch information
NewEraCracker committed Feb 28, 2022
1 parent c9f1dbb commit c8136f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/RTC/JitsiRemoteTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ export default class JitsiRemoteTrack extends JitsiTrack {
* Handles track play events.
*/
_playCallback() {
if (!this.conference.room) {
return;
}

const type = this.isVideoTrack() ? 'video' : 'audio';

const now = window.performance.now();
Expand Down
4 changes: 4 additions & 0 deletions modules/connectivity/IceFailedHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export default class IceFailedHandling {
* @returns {void}
*/
_actOnIceFailed() {
if (!this._conference.room) {
return;
}

const { enableForcedReload, enableIceRestart } = this._conference.options.config;
const explicitlyDisabled = typeof enableIceRestart !== 'undefined' && !enableIceRestart;
const supportsRestartByTerminate = this._conference.room.supportsRestartByTerminate();
Expand Down

0 comments on commit c8136f9

Please sign in to comment.