diff options
author | Devaev Maxim <[email protected]> | 2021-06-09 23:15:07 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-06-09 23:15:07 +0300 |
commit | 7191d8a77764bb16e8a3f5b5297f5281233ec44f (patch) | |
tree | 481472309948ee9ce1644ca749ef9f93f9de25f8 | |
parent | 256597eb27d1cbcb84e30e56d2e16e221f04f8ab (diff) |
fixed null __handle
-rw-r--r-- | web/share/js/kvm/stream.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 679f21ae..92f1cd69 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -112,7 +112,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { }; var __destroyJanus = function() { - if (__handle.webrtcStuff.remoteStream !== null) { + if (__handle && __handle.webrtcStuff && __handle.webrtcStuff.remoteStream) { for (let track of __handle.webrtcStuff.remoteStream.getTracks()) { track.stop(); __handle.webrtcStuff.remoteStream.removeTrack(track); |