Skip to content

Commit ce3328c

Browse files
committed
Fixed crash upon alt-f4
1 parent 89a749b commit ce3328c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ int main(int argc, char **argv) {
474474
RunGameLoop();
475475
}
476476

477+
g_ThreadMan.GetPriorityThreadPool().wait_for_tasks();
478+
g_ThreadMan.GetBackgroundThreadPool().wait_for_tasks();
479+
477480
DestroyManagers();
478481

479482
allegro_exit();

0 commit comments

Comments
 (0)