From 79f8e5aeeb76bb7b8e4e8c5476a88d004360356c Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 8 Apr 2024 11:59:36 -0600 Subject: [PATCH] Fix race condition in playback --- cmd/client/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/client/main.go b/cmd/client/main.go index ba10f55..bbc1855 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -83,6 +83,7 @@ func main() { select { case data := <- speaker: copy(output_samples, data) + default: } }