diff options
Diffstat (limited to 'web/share/js/kvm/stream.js')
-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); |