detach janus plugin

This commit is contained in:
Maxim Devaev 2024-03-06 06:51:13 +02:00
parent 96960ab0aa
commit b17f752f10

View File

@ -109,7 +109,11 @@ export function JanusStreamer(__setActive, __setInactive, __setInfo, __allow_aud
} }
__stopRetryEmsgInterval(); __stopRetryEmsgInterval();
__stopInfoInterval(); __stopInfoInterval();
__handle = null; if (__handle) {
__logInfo("uStreamer detaching ...:", __handle.getPlugin(), __handle.getId());
__handle.detach();
__handle = null;
}
__janus = null; __janus = null;
__setInactive(); __setInactive();
if (__stop) { if (__stop) {