fix(desktop_sharing): if remote control is disabled

This commit is contained in:
hristoterezov 2017-10-19 19:38:55 -05:00
parent 6f0fe06ba6
commit b869e53713
1 changed files with 6 additions and 1 deletions

View File

@ -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) {