properly reset voice

This commit is contained in:
MathMan05 2025-05-15 15:59:36 -05:00
parent 7bee29a24b
commit d9c462ad69

View file

@ -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};