aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-04-05 15:21:43 +0200
committersfan5 <sfan5@live.de>2021-04-05 16:02:47 +0200
commit43e262f13e8046dbe756cbfa45bf78e022e010cc (patch)
tree6184429111bcd6ebd4713daf468d8a500af2359a /src/client/game.cpp
parente5f802ab5cb32b242b0261000f8836a7da72a4bc (diff)
downloadminetest-43e262f13e8046dbe756cbfa45bf78e022e010cc.tar.gz
minetest-43e262f13e8046dbe756cbfa45bf78e022e010cc.tar.bz2
minetest-43e262f13e8046dbe756cbfa45bf78e022e010cc.zip
Don't apply connection timeout limit to locally hosted servers
fixes #11085
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 3c58fb46f..e3c40130f 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1532,7 +1532,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;