Commit c2c2c296 authored by Max Kellermann's avatar Max Kellermann

input/thread: set InputStream::ready after Open() failure

Without setting the "ready" flag, the caller will wait in WaitReady() forever, locking up MPD. Closes #252
parent c745e14f
ver 0.20.19 (not yet released) ver 0.20.19 (not yet released)
* protocol * protocol
- validate absolute seek time, reject negative values - validate absolute seek time, reject negative values
* input
- mms: fix lockup bug
* macOS: fix crash bug * macOS: fix crash bug
ver 0.20.18 (2018/02/24) ver 0.20.18 (2018/02/24)
......
...@@ -68,7 +68,7 @@ ThreadInputStream::ThreadFunc() ...@@ -68,7 +68,7 @@ ThreadInputStream::ThreadFunc()
Open(); Open();
} catch (...) { } catch (...) {
postponed_exception = std::current_exception(); postponed_exception = std::current_exception();
cond.broadcast(); SetReady();
return; return;
} }
......
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