From dd40c0fae3a894a196520c889cb7496bd2a562df Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 12 Apr 2020 18:41:42 +0200 Subject: [PATCH] Avoid an error --- assets/js/components/calls/window.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index e1b88ff8..a8c6216d 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -358,6 +358,10 @@ class CallWindow extends CustomEvents { audio: true }) + // Check if the window was closed in the mean time + if(!this.isOpen) + return + // Show user video this.addVideoStream(userID(), true, stream)