Commit 3d6c9d1b authored by Max Kellermann's avatar Max Kellermann

output/wasapi: catch all exception

parent 5823e79f
......@@ -401,9 +401,9 @@ WasapiOutput::DoDisable() noexcept
try {
thread->Finish();
thread->Join();
} catch (std::exception &err) {
FormatError(wasapi_output_domain, "exception while disabling: %s",
err.what());
} catch (...) {
LogError(std::current_exception(),
"exception while disabling");
}
thread.reset();
client.reset();
......@@ -560,9 +560,9 @@ WasapiOutput::Close() noexcept
Stop(*client);
}).get();
thread->CheckException();
} catch (std::exception &err) {
FormatError(wasapi_output_domain, "exception while stoping: %s",
err.what());
} catch (...) {
FormatError(std::current_exception(),
"exception while stopping");
}
is_started = false;
thread->Finish();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment