Disable connection timeout for singleplayer and server tabs

In worlds with many mods we can easily reach timeout, waiting for the server to start.
This commit is contained in:
est31 2015-04-19 19:49:31 +02:00
parent a615da6b12
commit f1a41e4f77

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