Commit 028f659c authored by Max Kellermann's avatar Max Kellermann

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

parent 8dfdacf1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment