audio: speaker: remove unnecessary channel confirmation
This commit is contained in:
parent
c6b821bd67
commit
7ecd50bd45
|
@ -31,7 +31,6 @@ func Init(bufferSize time.Duration) error {
|
|||
|
||||
if player != nil {
|
||||
done <- struct{}{}
|
||||
<-done
|
||||
player.Close()
|
||||
}
|
||||
|
||||
|
@ -57,7 +56,6 @@ func Init(bufferSize time.Duration) error {
|
|||
default:
|
||||
update()
|
||||
case <-done:
|
||||
done <- struct{}{}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue