Merge pull request #6484 from prlanzarin/fix-ss-error-exit

Fixed incorrect error toast on screenshare presenter exit
This commit is contained in:
Anton Georgiev 2019-01-02 13:58:30 -05:00 committed by GitHub
commit 3d6da277d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,10 @@ KurentoManager.prototype.exitScreenShare = function () {
this.kurentoScreenshare.logger.info(' [exitScreenShare] Exiting screensharing');
}
if(this.kurentoScreenshare.webRtcPeer) {
this.kurentoScreenshare.webRtcPeer.peerConnection.oniceconnectionstatechange = null;
}
if (this.kurentoScreenshare.ws !== null) {
this.kurentoScreenshare.ws.onclose = function () {};
this.kurentoScreenshare.ws.close();