mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-15 22:05:07 -05:00
Skip further loading of client if there was an exit signal
This commit is contained in:
parent
863379a4c6
commit
91c00d29a5
@ -1859,6 +1859,10 @@ bool ClientLauncher::launch_game(std::wstring *error_message,
|
|||||||
if (!skip_main_menu) {
|
if (!skip_main_menu) {
|
||||||
main_menu(&menudata);
|
main_menu(&menudata);
|
||||||
|
|
||||||
|
// Skip further loading if there was an exit signal.
|
||||||
|
if (*porting::signal_handler_killstatus())
|
||||||
|
return false;
|
||||||
|
|
||||||
address = menudata.address;
|
address = menudata.address;
|
||||||
int newport = stoi(menudata.port);
|
int newport = stoi(menudata.port);
|
||||||
if (newport != 0)
|
if (newport != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user