From d23e42d9142c65419940d6efc421537fa0d7da46 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 14 May 2019 11:55:53 -0300 Subject: [PATCH] fix reconnect client jitsi --- app/videobridge/client/views/videoFlexTab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/videobridge/client/views/videoFlexTab.js b/app/videobridge/client/views/videoFlexTab.js index 058899992912..290558e1240f 100644 --- a/app/videobridge/client/views/videoFlexTab.js +++ b/app/videobridge/client/views/videoFlexTab.js @@ -62,7 +62,11 @@ Template.videoFlexTab.onRendered(function() { if (jitsiTimeout && (new Date() - new Date(jitsiTimeout) + CONSTANTS.TIMEOUT < CONSTANTS.DEBOUNCE)) { return; } - return Meteor.status().connected && Meteor.call('jitsi:updateTimeout', rid); + if (Meteor.status().connected) { + return Meteor.call('jitsi:updateTimeout', rid); + } + closePanel(); + return this.stop(); }; update(); this.intervalHandler = Meteor.setInterval(update, CONSTANTS.HEARTBEAT);