From d60146c6a8297a4a7eb3e0ebddf703ed797cae87 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 1 Nov 2016 15:00:05 -0500 Subject: [PATCH] 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. --- conference.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conference.js b/conference.js index b10f6c556..9311bbe81 100644 --- a/conference.js +++ b/conference.js @@ -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(