diff options
author | Max Kellermann <max@musicpd.org> | 2021-03-08 22:18:01 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-03-08 22:18:48 +0100 |
commit | 798e68ef623192a97bde77c015b4056ad3a8765c (patch) | |
tree | a0d704116d8e44dec28585baa8791b34433007f0 /src/output/plugins/wasapi/WasapiOutputPlugin.cxx | |
parent | 79397db5b4edc20ea4bc6e7b035ff79a245ee6b7 (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.cxx | 3 |
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); } } |