Skip to content
Permalink
Browse files

Don't apply connection timeout limit to locally hosted servers

fixes #11085
  • Loading branch information
sfan5 committed Apr 5, 2021
1 parent c11208c commit 19c283546c5418382ed3ab648ca165ef1cc7994b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/game.cpp
@@ -1536,7 +1536,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;

0 comments on commit 19c2835

Please sign in to comment.