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 CheckException() {
|
||||
if (error.occur.load()) {
|
||||
auto err = std::exchange(error.ptr, nullptr);
|
||||
std::rethrow_exception(err);
|
||||
std::rethrow_exception(error.ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue