Fix audio deinit hang

This commit is contained in:
Nonoo 2020-10-27 17:31:07 +01:00
parent afa48dc7a0
commit a4317908e3

View file

@ -66,6 +66,7 @@ func (a *audioStruct) playLoop(deinitNeededChan, deinitFinishedChan chan bool) {
if _, ok := err.(*os.PathError); !ok {
reportError(err)
}
break
}
bytesToWrite -= written
if bytesToWrite == 0 {