소스 검색

Merge pull request #743 from jitsi/reject_leave_on_timeout

fix(JitsiConference.leave): reject in case of a timeout
dev1
Saúl Ibarra Corretgé 7 년 전
부모
커밋
31b1910841
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      JitsiConference.js

+ 3
- 1
JitsiConference.js 파일 보기

@@ -418,12 +418,14 @@ JitsiConference.prototype.leave = function() {
418 418
 
419 419
         this.room = null;
420 420
 
421
-        return room.leave().catch(() => {
421
+        return room.leave().catch(error => {
422 422
             // remove all participants because currently the conference won't
423 423
             // be usable anyway. This is done on success automatically by the
424 424
             // ChatRoom instance.
425 425
             this.getParticipants().forEach(
426 426
                 participant => this.onMemberLeft(participant.getJid()));
427
+
428
+            throw error;
427 429
         });
428 430
     }
429 431
 

Loading…
취소
저장