Wait for file playback workers before restart

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 18:23:19 -04:00
committed by Brandon McGinty
parent f629ce0359
commit 7ebe764d82
3 changed files with 44 additions and 13 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ Priority 1: transport, lifecycle, and correctness
overwrites b.Stream. Destroy/stop the old resources before reconnecting;
make disconnect cleanup idempotent.
12. File player sessions race each other
[x] 12. File player sessions race each other
File: fileplayback/player.go
readFileAudio repeatedly reads mutable Player stopChan/ctx/audioChan.
Stop can return and a new PlayFile can replace them while the old ffmpeg