summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-06-09 23:15:07 +0300
committerDevaev Maxim <[email protected]>2021-06-09 23:15:07 +0300
commit7191d8a77764bb16e8a3f5b5297f5281233ec44f (patch)
tree481472309948ee9ce1644ca749ef9f93f9de25f8 /web
parent256597eb27d1cbcb84e30e56d2e16e221f04f8ab (diff)
fixed null __handle
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/stream.js2
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);