From 91c00d29a53a944d910d2adb40c25188a37749ed Mon Sep 17 00:00:00 2001 From: Christophe Piveteau Date: Sun, 28 Dec 2014 16:52:51 +0100 Subject: [PATCH] Skip further loading of client if there was an exit signal --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0c5f73b2..cc89d32a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1859,6 +1859,10 @@ bool ClientLauncher::launch_game(std::wstring *error_message, if (!skip_main_menu) { main_menu(&menudata); + // Skip further loading if there was an exit signal. + if (*porting::signal_handler_killstatus()) + return false; + address = menudata.address; int newport = stoi(menudata.port); if (newport != 0)