mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[APU] Only wait on the worker thread if it actually exists.
This commit is contained in:
parent
e48f4ce004
commit
38a6d110e7
|
|
@ -158,8 +158,10 @@ void AudioSystem::Initialize() {}
|
|||
void AudioSystem::Shutdown() {
|
||||
worker_running_ = false;
|
||||
shutdown_event_->Set();
|
||||
worker_thread_->Wait(0, 0, 0, nullptr);
|
||||
worker_thread_.reset();
|
||||
if (worker_thread_) {
|
||||
worker_thread_->Wait(0, 0, 0, nullptr);
|
||||
worker_thread_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
X_STATUS AudioSystem::RegisterClient(uint32_t callback, uint32_t callback_arg,
|
||||
|
|
|
|||
Loading…
Reference in a new issue