output/Thread: move error handling code into the catch block
This commit is contained in:
parent
8dfdacf128
commit
028f659c40
|
@ -279,10 +279,6 @@ AudioOutputControl::PlayChunk() noexcept
|
|||
} catch (...) {
|
||||
FormatError(std::current_exception(),
|
||||
"Failed to play on %s", GetLogName());
|
||||
nbytes = 0;
|
||||
}
|
||||
|
||||
if (nbytes == 0) {
|
||||
InternalClose(false);
|
||||
|
||||
/* don't automatically reopen this device for
|
||||
|
|
Loading…
Reference in New Issue