output/wasapi: don't clear the exception in CheckException()
This is pointless; the method cannot be called again anyway.
This commit is contained in:
parent
79397db5b4
commit
798e68ef62
@ -195,8 +195,7 @@ public:
|
|||||||
void WaitDataPoped() noexcept { data_poped.Wait(); }
|
void WaitDataPoped() noexcept { data_poped.Wait(); }
|
||||||
void CheckException() {
|
void CheckException() {
|
||||||
if (error.occur.load()) {
|
if (error.occur.load()) {
|
||||||
auto err = std::exchange(error.ptr, nullptr);
|
std::rethrow_exception(error.ptr);
|
||||||
std::rethrow_exception(err);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user