1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

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

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;