mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user