Reject renderer work after audio shutdown

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 15:08:36 -04:00
committed by Brandon McGinty
parent 1679a37783
commit 28a59832c4
3 changed files with 41 additions and 8 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Priority 1: transport, lifecycle, and correctness
a cancellation context plus WaitGroup/done channel; serialize Start, Stop,
reopen, and Destroy; wait before CaptureCloseDevice.
10. Renderer can be used after it is closed
[x] 10. Renderer can be used after it is closed
Files: gumble/gumbleopenal/stream.go, gumble/gumble/audiolisteners.go
Existing OnAudioStream goroutines can run cleanup after Destroy closes
renderCh. Their final render call then panics sending on a closed channel.