mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 19:43:45 +01: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:
parent
a615da6b12
commit
f1a41e4f77
@ -2217,7 +2217,8 @@ bool Game::connectToServer(const std::string &playername,
|
|||||||
}
|
}
|
||||||
|
|
||||||
wait_time += dtime;
|
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.";
|
*error_message = "Connection timed out.";
|
||||||
errorstream << *error_message << std::endl;
|
errorstream << *error_message << std::endl;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user