output/wasapi: don't clear the exception in CheckException()

This is pointless; the method cannot be called again anyway.
This commit is contained in:
Max Kellermann 2021-03-08 22:18:01 +01:00
parent 79397db5b4
commit 798e68ef62
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}