From eeac901b11670a91914cbbfe4c27d9edcd318817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 1 Feb 2016 23:44:48 +0100 Subject: [PATCH] Don't prematurely fail network resolver Sometimes the resolver is still in progress while an update checks its status, which is `INPROGRESS` and makes the game think there was a connection failure. This lets resolver continue doing its job if the status is `INPROGRESS`. --- src/network/network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/network.cpp b/src/network/network.cpp index e1ffc7dc45..fbf1fb9972 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -814,6 +814,8 @@ void Network::UpdateClient() connectfailed = true; break; } + } else if (server_address.GetResolveStatus() == NetworkAddress::RESOLVE_INPROGRESS) { + break; } else { log_error("Could not resolve address."); connectfailed = true;