Explorar el Código

Wait for the terminate event before destroying a system instance

Kelebek1 hace 3 años
padre
commit
2feb40f14d
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      src/audio_core/renderer/system.cpp

+ 1 - 4
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();
     }
 }