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

View File

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