Merge pull request #2091 from jitsi/remote_control_disable

fix(desktop_sharing): if remote control is disabled
This commit is contained in:
virtuacoplenny 2017-10-20 09:45:51 -07:00 committed by GitHub
commit 40377634f2
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) {