Browse Source

fix(JitsiConference.leave): reject in case of a timeout

JitsiConference shouldn't lie that the leave() was successful when it
was not.
dev1
paweldomas 7 years ago
parent
commit
a7fb20e587
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      JitsiConference.js

+ 3
- 1
JitsiConference.js View File

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

Loading…
Cancel
Save