From b17f752f10500e175cfefd8cbff4fffe936a4d3f Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Wed, 6 Mar 2024 06:51:13 +0200 Subject: detach janus plugin --- web/share/js/kvm/stream_janus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'web/share/js') 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) { -- cgit v1.2.3