diff options
Diffstat (limited to 'src/input/Open.cxx')
-rw-r--r-- | src/input/Open.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/input/Open.cxx b/src/input/Open.cxx index 53afb5a7b..4f23f14ce 100644 --- a/src/input/Open.cxx +++ b/src/input/Open.cxx @@ -63,20 +63,11 @@ InputStream::OpenReady(const char *uri, { auto is = Open(uri, mutex, cond); - bool success; - { const ScopeLock protect(mutex); is->WaitReady(); - - Error error; - success = is->Check(error); - if (!success) - throw std::runtime_error(error.GetMessage()); + is->Check(); } - if (!success) - is.reset(); - return is; } |