Commit 798e68ef authored by Max Kellermann's avatar Max Kellermann

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

This is pointless; the method cannot be called again anyway.
parent 79397db5
......@@ -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);
}
}
......
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