output/wasapi: remove the thread management code from DoDisable()
This is duplicate; this has already been done in Close().
This commit is contained in:
parent
d19b3df3b0
commit
29346dc9c5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user