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