Disable connection timeout for singleplayer and server tabs

In worlds with many mods we can easily reach timeout, waiting for the server to start.
master
est31 2015-04-19 19:49:31 +02:00
parent a615da6b12
commit f1a41e4f77
1 changed files with 2 additions and 1 deletions

View File

@ -2217,7 +2217,8 @@ bool Game::connectToServer(const std::string &playername,
}
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.";
errorstream << *error_message << std::endl;
break;