Merge pull request #20008 from prlanzarin/u27/fix/crash-videoprovider-onmessage
[2.7] fix(bbb-html5): crash on video-provider unmount
This commit is contained in:
commit
916d601d2b
@ -220,9 +220,11 @@ class VideoProvider extends Component {
|
||||
this._isMounted = false;
|
||||
VideoService.updatePeerDictionaryReference({});
|
||||
|
||||
if (this.ws) {
|
||||
this.ws.onmessage = null;
|
||||
this.ws.onopen = null;
|
||||
this.ws.onclose = null;
|
||||
}
|
||||
|
||||
window.removeEventListener('beforeunload', VideoProvider.onBeforeUnload);
|
||||
VideoService.exitVideo();
|
||||
|
Loading…
Reference in New Issue
Block a user