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 -1
View File
@@ -92,7 +92,7 @@ Priority 1: transport, lifecycle, and correctness
Stop and join all audio stream goroutines before renderer shutdown; make
render reject work after shutdown without panicking.
11. Reconnect leaks the old audio stream
[x] 11. Reconnect leaks the old audio stream
File: client.go
OnDisconnect starts reconnecting but never destroys the existing Stream or
stops its file player/capture routine. connect creates a new Stream and