Sfoglia il codice sorgente

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 anni fa
parent
commit
31b1910841
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      JitsiConference.js

+ 3
- 1
JitsiConference.js Vedi 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…
Annulla
Salva