From 43e262f13e8046dbe756cbfa45bf78e022e010cc Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 5 Apr 2021 15:21:43 +0200 Subject: [PATCH] Don't apply connection timeout limit to locally hosted servers fixes #11085 --- src/client/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;