output/wasapi: catch all exception
This commit is contained in:
parent
5823e79fe7
commit
3d6c9d1b88
@ -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
|
|||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user