output/Thread: move error handling code into the catch block

This commit is contained in:
Max Kellermann 2018-01-02 17:48:14 +01:00
parent 8dfdacf128
commit 028f659c40
1 changed files with 0 additions and 4 deletions

View File

@ -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