Skip to content

Commit d9c462a

Browse files
committed
properly reset voice
1 parent 7bee29a commit d9c462a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/webpage/voice.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,12 @@ a=rtcp-mux\r`;
823823
this.pc.close();
824824
this.pc = undefined;
825825
}
826+
this.micTrack?.stop();
827+
this.micTrack = undefined;
828+
this.micTrack = undefined;
829+
this.off = undefined;
830+
this.counter = undefined;
831+
this.offer = undefined;
826832
}
827833
}
828834
export {Voice, VoiceFactory};

0 commit comments

Comments
 (0)