Parcourir la source

fix(conference): leave the room when XMPP connection is dropped

It looks weird when the page reload overlay appears and the conference
continues in the background (the connection to the JVB remains active).
The library will not recover and the conference can not continue without
the signalling, so the room should be left and media stopped.
master
paweldomas il y a 8 ans
Parent
révision
d60146c6a8
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      conference.js

+ 4
- 0
conference.js Voir le fichier

@@ -566,6 +566,10 @@ export default {
566 566
                 APP.UI.showPageReloadOverlay();
567 567
                 connection.removeEventListener(
568 568
                     ConnectionEvents.CONNECTION_FAILED, handler);
569
+                // FIXME it feels like the conference should be stopped
570
+                // by lib-jitsi-meet
571
+                if (room)
572
+                    room.leave();
569 573
             }
570 574
         };
571 575
         connection.addEventListener(

Chargement…
Annuler
Enregistrer