audio/internal/readerdriver: Handle errors correctly (Windows)

This commit is contained in:
Hajime Hoshi 2021-05-28 14:09:05 +09:00
parent 6c3c3533fb
commit c3b8fa1c45

View File

@ -159,7 +159,9 @@ func (p *players) add(player *playerImpl) error {
p.headers = append(p.headers, h)
}
p.readAndWriteBuffersImpl()
if err := p.readAndWriteBuffersImpl(); err != nil {
return err
}
go p.loop()