From b869e53713b9b492382e0a0ad224bad3e55de142 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Thu, 19 Oct 2017 19:38:55 -0500 Subject: [PATCH] fix(desktop_sharing): if remote control is disabled --- conference.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conference.js b/conference.js index a0fc894d2..bb691a346 100644 --- a/conference.js +++ b/conference.js @@ -1416,7 +1416,12 @@ export default { _turnScreenSharingOff(didHaveVideo, wasVideoMuted) { this._untoggleScreenSharing = null; this.videoSwitchInProgress = true; - APP.remoteControl.receiver.stop(); + const { receiver } = APP.remoteControl; + + if (receiver) { + receiver.stop(); + } + let promise = null; if (didHaveVideo) {