Skip to content

Commit f1a41e4

Browse files
committedApr 19, 2015
Disable connection timeout for singleplayer and server tabs
In worlds with many mods we can easily reach timeout, waiting for the server to start.
1 parent a615da6 commit f1a41e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎src/game.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,8 @@ bool Game::connectToServer(const std::string &playername,
22172217
}
22182218

22192219
wait_time += dtime;
2220-
if (wait_time > 10) {
2220+
// Only time out if we aren't waiting for the server we started
2221+
if ((*address != "") && (wait_time > 10)) {
22212222
*error_message = "Connection timed out.";
22222223
errorstream << *error_message << std::endl;
22232224
break;

0 commit comments

Comments
 (0)
Please sign in to comment.