Skip to content

Commit 19c2835

Browse files
committed
Don't apply connection timeout limit to locally hosted servers
fixes #11085
1 parent c11208c commit 19c2835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/game.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ bool Game::connectToServer(const GameStartData &start_data,
15361536
} else {
15371537
wait_time += dtime;
15381538
// Only time out if we aren't waiting for the server we started
1539-
if (!start_data.isSinglePlayer() && wait_time > 10) {
1539+
if (!start_data.address.empty() && wait_time > 10) {
15401540
*error_message = "Connection timed out.";
15411541
errorstream << *error_message << std::endl;
15421542
break;

0 commit comments

Comments
 (0)