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`.
This commit is contained in:
Michał Janiszewski 2016-02-01 23:44:48 +01:00
parent dde7a726aa
commit eeac901b11
1 changed files with 2 additions and 0 deletions

View File

@ -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;