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:
@@ -68,7 +68,7 @@ ThreadInputStream::ThreadFunc()
|
||||
Open();
|
||||
} catch (...) {
|
||||
postponed_exception = std::current_exception();
|
||||
cond.broadcast();
|
||||
SetReady();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user