Browse Source
Merge pull request #10128 from Kelebek1/audren_terminate
Wait for the terminate event before destroying a system instance
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
src/audio_core/renderer/system.cpp
|
|
|
@ -436,10 +436,7 @@ void System::Stop() { |
|
|
|
} |
|
|
|
|
|
|
|
if (execution_mode == ExecutionMode::Auto) { |
|
|
|
// Should wait for the system to terminate here, but core timing (should have) already
|
|
|
|
// stopped, so this isn't needed. Find a way to make this definite.
|
|
|
|
|
|
|
|
// terminate_event.Wait();
|
|
|
|
terminate_event.Wait(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|