summaryrefslogtreecommitdiff
path: root/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-03-08 22:18:01 +0100
committerMax Kellermann <max@musicpd.org>2021-03-08 22:18:48 +0100
commit798e68ef623192a97bde77c015b4056ad3a8765c (patch)
treea0d704116d8e44dec28585baa8791b34433007f0 /src/output/plugins/wasapi/WasapiOutputPlugin.cxx
parent79397db5b4edc20ea4bc6e7b035ff79a245ee6b7 (diff)
output/wasapi: don't clear the exception in CheckException()
This is pointless; the method cannot be called again anyway.
Diffstat (limited to 'src/output/plugins/wasapi/WasapiOutputPlugin.cxx')
-rw-r--r--src/output/plugins/wasapi/WasapiOutputPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
index 37ec0cfd6..3314204fc 100644
--- a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+++ b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
@@ -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);
}
}