Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
a7fb20e587
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      JitsiConference.js

+ 3
- 1
JitsiConference.js Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt