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

output/wasapi: catch all exception

parent 5823e79f
...@@ -401,9 +401,9 @@ WasapiOutput::DoDisable() noexcept ...@@ -401,9 +401,9 @@ WasapiOutput::DoDisable() noexcept
try { try {
thread->Finish(); thread->Finish();
thread->Join(); thread->Join();
} catch (std::exception &err) { } catch (...) {
FormatError(wasapi_output_domain, "exception while disabling: %s", LogError(std::current_exception(),
err.what()); "exception while disabling");
} }
thread.reset(); thread.reset();
client.reset(); client.reset();
...@@ -560,9 +560,9 @@ WasapiOutput::Close() noexcept ...@@ -560,9 +560,9 @@ WasapiOutput::Close() noexcept
Stop(*client); Stop(*client);
}).get(); }).get();
thread->CheckException(); thread->CheckException();
} catch (std::exception &err) { } catch (...) {
FormatError(wasapi_output_domain, "exception while stoping: %s", FormatError(std::current_exception(),
err.what()); "exception while stopping");
} }
is_started = false; is_started = false;
thread->Finish(); 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