forked from ShuriZma/suyu
1
0
Fork 0

Wait for the terminate event before destroying a system instance

This commit is contained in:
Kelebek1 2023-05-01 00:27:12 +01:00
parent fe57f39676
commit 2feb40f14d
1 changed files with 1 additions and 4 deletions

View File

@ -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();
}
}