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:
parent
c745e14f47
commit
c2c2c29658
2
NEWS
2
NEWS
|
@ -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)
|
||||
|
|
|
@ -68,7 +68,7 @@ ThreadInputStream::ThreadFunc()
|
|||
Open();
|
||||
} catch (...) {
|
||||
postponed_exception = std::current_exception();
|
||||
cond.broadcast();
|
||||
SetReady();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue