From 24218cf1e1f9bd6d85e2370ca32d50d06148d3a3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 13 Apr 2020 16:58:43 +0200 Subject: [PATCH] Fix connection issues --- assets/js/components/calls/window.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 01d0a621..492e1aac 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -694,6 +694,10 @@ class CallWindow extends CustomEvents { */ async startStreaming(includeVideo, shareScreen = false) { + // Close any previous connection + this.closeMainPeer(); + this.refreshButtonsState() + let stream; // Get user screen @@ -731,6 +735,7 @@ class CallWindow extends CustomEvents { // Show user video await this.applyStream(userID(), true, stream) + this.refreshButtonsState() this.mainPeer = new SimplePeer({ initiator: true,