summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 17:48:14 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 17:48:14 +0100
commit028f659c403f1a8edb87b308feb52dcecc0038cd (patch)
treeb8e90153fb710412fe17422f8469e1e86c2003d0 /src/output
parent8dfdacf128354cac98df5884414ced0446d17a2d (diff)
output/Thread: move error handling code into the catch block
Diffstat (limited to 'src/output')
-rw-r--r--src/output/Thread.cxx4
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