aboutsummaryrefslogtreecommitdiff
path: root/wav
diff options
context:
space:
mode:
Diffstat (limited to 'wav')
-rw-r--r--wav/wav.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/wav/wav.go b/wav/wav.go
index 089466e..acd7841 100644
--- a/wav/wav.go
+++ b/wav/wav.go
@@ -110,8 +110,12 @@ func (w *Wav) Start(ch chan<- []byte) {
select {
case <-w.Done:
return
+ default:
+ }
+ select {
+ case <-w.Done:
+ return
case ch <- b:
-
}
}