Fixed infinite loading screen when logging in with an invalid nickname

Fixes #2728.
This commit is contained in:
Charles Dang 2018-03-25 04:46:02 +11:00
parent 83007d4825
commit e4b7820ab0

View file

@ -228,6 +228,8 @@ std::pair<wesnothd_connection_ptr, config> open_connection(std::string host)
if(gui2::show_message(_("Warning"), warning_msg, gui2::dialogs::message::yes_no_buttons) != gui2::retval::OK) {
return std::make_pair(wesnothd_connection_ptr(), config());
} else {
continue;
}
}