Selaa lähdekoodia

Merge pull request #1101 from jitsi/stop_media_when_xmpp_drops

Stop the media when XMPP connection is dropped
master
hristoterezov 8 vuotta sitten
vanhempi
commit
5b6956e25b
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      conference.js

+ 4
- 0
conference.js Näytä tiedosto

566
                 APP.UI.showPageReloadOverlay();
566
                 APP.UI.showPageReloadOverlay();
567
                 connection.removeEventListener(
567
                 connection.removeEventListener(
568
                     ConnectionEvents.CONNECTION_FAILED, handler);
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
         connection.addEventListener(
575
         connection.addEventListener(

Loading…
Peruuta
Tallenna