Wait for threads before SDL_Quit (lol)

This commit is contained in:
James R 2020-04-27 18:03:10 -07:00
parent 5fff4c35fc
commit a80c7a26dd
1 changed files with 1 additions and 1 deletions

View File

@ -2254,7 +2254,7 @@ INT32 I_StartupSystem(void)
SDL_GetVersion(&SDLlinked);
#ifdef HAVE_THREADS
I_start_threads();
atexit(I_stop_threads);
I_AddExitFunc(I_stop_threads);
#endif
I_StartupConsole();
#ifdef NEWSIGNALHANDLER