Skip to content
Snippets Groups Projects
Commit f1a41e4f authored by est31's avatar est31
Browse files

Disable connection timeout for singleplayer and server tabs

In worlds with many mods we can easily reach timeout, waiting for the server to start.
parent a615da6b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment