Skip to content

Commit

Permalink
Skip further loading of client if there was an exit signal
Browse files Browse the repository at this point in the history
  • Loading branch information
ChriPiv authored and kwolekr committed Dec 29, 2014
1 parent 863379a commit 91c00d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 91c00d2

Please sign in to comment.