Don't apply connection timeout limit to locally hosted servers

fixes #11085
This commit is contained in:
sfan5 2021-04-05 15:21:43 +02:00
parent e5f802ab5c
commit 43e262f13e

@ -1532,7 +1532,7 @@ bool Game::connectToServer(const GameStartData &start_data,
} else {
wait_time += dtime;
// Only time out if we aren't waiting for the server we started
if (!start_data.isSinglePlayer() && wait_time > 10) {
if (!start_data.address.empty() && wait_time > 10) {
*error_message = "Connection timed out.";
errorstream << *error_message << std::endl;
break;