Browse Source

fix(JitsiConference) fix exceptions which occur after leaving the conference

Fixes issue #1476
Alternative to PR #1487
dev1
Jorge Oliveira 3 years ago
parent
commit
c8136f9e09
No account linked to committer's email address
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      modules/RTC/JitsiRemoteTrack.js
  2. 4
    0
      modules/connectivity/IceFailedHandling.js

+ 4
- 0
modules/RTC/JitsiRemoteTrack.js View File

@@ -283,6 +283,10 @@ export default class JitsiRemoteTrack extends JitsiTrack {
283 283
      * Handles track play events.
284 284
      */
285 285
     _playCallback() {
286
+        if (!this.conference.room) {
287
+            return;
288
+        }
289
+
286 290
         const type = this.isVideoTrack() ? 'video' : 'audio';
287 291
 
288 292
         const now = window.performance.now();

+ 4
- 0
modules/connectivity/IceFailedHandling.js View File

@@ -32,6 +32,10 @@ export default class IceFailedHandling {
32 32
      * @returns {void}
33 33
      */
34 34
     _actOnIceFailed() {
35
+        if (!this._conference.room) {
36
+            return;
37
+        }
38
+
35 39
         const { enableForcedReload, enableIceRestart } = this._conference.options.config;
36 40
         const explicitlyDisabled = typeof enableIceRestart !== 'undefined' && !enableIceRestart;
37 41
         const supportsRestartByTerminate = this._conference.room.supportsRestartByTerminate();

Loading…
Cancel
Save