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
This commit is contained in:
Max Kellermann 2018-03-14 13:15:03 +01:00
parent c745e14f47
commit c2c2c29658
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.20.19 (not yet released)
* protocol
- validate absolute seek time, reject negative values
* input
- mms: fix lockup bug
* macOS: fix crash bug
ver 0.20.18 (2018/02/24)

View File

@ -68,7 +68,7 @@ ThreadInputStream::ThreadFunc()
Open();
} catch (...) {
postponed_exception = std::current_exception();
cond.broadcast();
SetReady();
return;
}