diff options
author | Maxim Devaev <[email protected]> | 2024-03-06 06:51:13 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-03-06 06:51:13 +0200 |
commit | b17f752f10500e175cfefd8cbff4fffe936a4d3f (patch) | |
tree | f3d8ad73e4f0802cfbd1043b8f07b6089c576d6c /web | |
parent | 96960ab0aa0c544f4a6ad972ded345dc54b5683e (diff) |
detach janus plugin
Diffstat (limited to 'web')
-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) { |