output/wasapi: remove the thread management code from DoDisable()

This is duplicate; this has already been done in Close().
This commit is contained in:
Max Kellermann 2021-03-08 22:27:16 +01:00
parent d19b3df3b0
commit 29346dc9c5

View File

@ -391,17 +391,8 @@ WasapiOutput::WasapiOutput(const ConfigBlock &block)
void
WasapiOutput::DoDisable() noexcept
{
if (thread) {
try {
thread->Finish();
thread->Join();
} catch (...) {
LogError(std::current_exception(),
"exception while disabling");
}
thread.reset();
client.reset();
}
assert(!thread);
device.reset();
enumerator.reset();
}