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.
This commit is contained in:
paweldomas 2016-11-01 15:00:05 -05:00
parent 456b3030e3
commit d60146c6a8
1 changed files with 4 additions and 0 deletions

View File

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