audio: speaker: remove unnecessary channel confirmation

This commit is contained in:
faiface 2017-07-09 16:34:49 +02:00
parent 5ca0239191
commit eca7b33334
1 changed files with 0 additions and 2 deletions

View File

@ -31,7 +31,6 @@ func Init(bufferSize time.Duration) error {
if player != nil { if player != nil {
done <- struct{}{} done <- struct{}{}
<-done
player.Close() player.Close()
} }
@ -57,7 +56,6 @@ func Init(bufferSize time.Duration) error {
default: default:
update() update()
case <-done: case <-done:
done <- struct{}{}
return return
} }
} }