소스 검색

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

Fixes issue #1476
Alternative to PR #1487
tags/v0.0.2
Jorge Oliveira 3 년 전
부모
커밋
c8136f9e09
No account linked to committer's email address
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      modules/RTC/JitsiRemoteTrack.js
  2. 4
    0
      modules/connectivity/IceFailedHandling.js

+ 4
- 0
modules/RTC/JitsiRemoteTrack.js 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장