diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-02 17:48:14 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-02 17:48:14 +0100 |
commit | 028f659c403f1a8edb87b308feb52dcecc0038cd (patch) | |
tree | b8e90153fb710412fe17422f8469e1e86c2003d0 /src/output/Thread.cxx | |
parent | 8dfdacf128354cac98df5884414ced0446d17a2d (diff) |
output/Thread: move error handling code into the catch block
Diffstat (limited to 'src/output/Thread.cxx')
-rw-r--r-- | src/output/Thread.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/output/Thread.cxx b/src/output/Thread.cxx index ce59dba26..eb44776f1 100644 --- a/src/output/Thread.cxx +++ b/src/output/Thread.cxx @@ -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 |