diff options
-rw-r--r-- | web/share/js/kvm/stream_janus.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/share/js/kvm/stream_janus.js b/web/share/js/kvm/stream_janus.js index 5a8b4cce..05fdc128 100644 --- a/web/share/js/kvm/stream_janus.js +++ b/web/share/js/kvm/stream_janus.js @@ -109,7 +109,11 @@ export function JanusStreamer(__setActive, __setInactive, __setInfo, __allow_aud } __stopRetryEmsgInterval(); __stopInfoInterval(); - __handle = null; + if (__handle) { + __logInfo("uStreamer detaching ...:", __handle.getPlugin(), __handle.getId()); + __handle.detach(); + __handle = null; + } __janus = null; __setInactive(); if (__stop) { |