Release audio resources before reconnecting

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 14:50:01 -04:00
committed by Brandon McGinty
parent 25467405b8
commit d07d7342da
4 changed files with 27 additions and 1 deletions
+1
View File
@@ -168,6 +168,7 @@ func (b *Barnard) OnDisconnect(e *gumble.DisconnectEvent) {
reason = e.String
}
b.stopRecordingForDisconnect()
b.cleanupConnectionAudio()
// Tone test cleanup
if b.ToneTest {