diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 5c580b87a..ffb69d9a8 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -523,6 +523,8 @@ static void I_ReportSignal(int num, int coredumped) #ifndef NEWSIGNALHANDLER FUNCNORETURN static ATTRNORETURN void signal_handler(INT32 num) { + g_in_exiting_signal_handler = true; + #ifdef HAVE_THREADS if (g_main_thread_id != std::this_thread::get_id()) { @@ -533,8 +535,6 @@ FUNCNORETURN static ATTRNORETURN void signal_handler(INT32 num) } #endif - g_in_exiting_signal_handler = true; - D_QuitNetGame(); // Fix server freezes #ifdef HAVE_LIBBACKTRACE