mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't apply connection timeout limit to locally hosted servers
fixes #11085
This commit is contained in:
parent
c11208c4b5
commit
19c283546c
1 changed files with 1 additions and 1 deletions
|
@ -1536,7 +1536,7 @@ bool Game::connectToServer(const GameStartData &start_data,
|
||||||
} else {
|
} else {
|
||||||
wait_time += dtime;
|
wait_time += dtime;
|
||||||
// Only time out if we aren't waiting for the server we started
|
// Only time out if we aren't waiting for the server we started
|
||||||
if (!start_data.isSinglePlayer() && wait_time > 10) {
|
if (!start_data.address.empty() && 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…
Add table
Add a link
Reference in a new issue