summaryrefslogtreecommitdiff
path: root/src/input/Open.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-09 18:47:42 +0200
committerMax Kellermann <max@musicpd.org>2016-09-16 17:43:36 +0200
commit8c744efd5693f2a39b1441d747ebdf0d23faa308 (patch)
treeee7e99a9b1a235bc1ef554930a3c75dbfabec8d5 /src/input/Open.cxx
parent597e59f10da774c7169ee4328c874b21f71f3e60 (diff)
input/InputStream: migrate from class Error to C++ exceptions
Diffstat (limited to 'src/input/Open.cxx')
-rw-r--r--src/input/Open.cxx11
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;
}