Skip to content

Commit

Permalink
Disable connection timeout for singleplayer and server tabs
Browse files Browse the repository at this point in the history
In worlds with many mods we can easily reach timeout, waiting for the server to start.
  • Loading branch information
est31 committed Apr 19, 2015
1 parent a615da6 commit f1a41e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f1a41e4

Please sign in to comment.