summaryrefslogtreecommitdiff
path: root/src/audio_core/renderer
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-05-01 00:27:12 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-05-01 00:27:12 +0100
commit2feb40f14dd54e819078cd8ac1df0a3f2e8b2902 (patch)
treefce1ca24be5692320732bece8ad909de7f7a808c /src/audio_core/renderer
parentfe57f3967639616142889bf1b638117ca6c879cf (diff)
Wait for the terminate event before destroying a system instance
Diffstat (limited to 'src/audio_core/renderer')
-rw-r--r--src/audio_core/renderer/system.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/audio_core/renderer/system.cpp b/src/audio_core/renderer/system.cpp
index ad869facb..53b258c4f 100644
--- a/src/audio_core/renderer/system.cpp
+++ b/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();
}
}