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
|
void
|
||||||
WasapiOutput::DoDisable() noexcept
|
WasapiOutput::DoDisable() noexcept
|
||||||
{
|
{
|
||||||
if (thread) {
|
assert(!thread);
|
||||||
try {
|
|
||||||
thread->Finish();
|
|
||||||
thread->Join();
|
|
||||||
} catch (...) {
|
|
||||||
LogError(std::current_exception(),
|
|
||||||
"exception while disabling");
|
|
||||||
}
|
|
||||||
thread.reset();
|
|
||||||
client.reset();
|
|
||||||
}
|
|
||||||
device.reset();
|
device.reset();
|
||||||
enumerator.reset();
|
enumerator.reset();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user