From d9c462ad6934cfa52af367c6bdc97e211cd9c6d8 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Thu, 15 May 2025 15:59:36 -0500 Subject: [PATCH] properly reset voice --- src/webpage/voice.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webpage/voice.ts b/src/webpage/voice.ts index fa29c91..511bd0e 100644 --- a/src/webpage/voice.ts +++ b/src/webpage/voice.ts @@ -823,6 +823,12 @@ a=rtcp-mux\r`; this.pc.close(); this.pc = undefined; } + this.micTrack?.stop(); + this.micTrack = undefined; + this.micTrack = undefined; + this.off = undefined; + this.counter = undefined; + this.offer = undefined; } } export {Voice, VoiceFactory};