diff options
author | sfan5 <sfan5@live.de> | 2021-04-05 15:21:43 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-04-05 15:21:43 +0200 |
commit | 19c283546c5418382ed3ab648ca165ef1cc7994b (patch) | |
tree | 7008de70d86d78eebc594f498505f9d9e2dd7797 /src/client | |
parent | c11208c4b55bc6b17e523761befed6156027edf9 (diff) | |
download | minetest-19c283546c5418382ed3ab648ca165ef1cc7994b.tar.gz minetest-19c283546c5418382ed3ab648ca165ef1cc7994b.tar.bz2 minetest-19c283546c5418382ed3ab648ca165ef1cc7994b.zip |
Don't apply connection timeout limit to locally hosted servers
fixes #11085
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp index 949e53214..edb054032 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1536,7 +1536,7 @@ bool Game::connectToServer(const GameStartData &start_data, } else { wait_time += dtime; // 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."; errorstream << *error_message << std::endl; break; |