If forcing IPv4, retry immediately rather than wait 2 minutes

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2018-02-12 20:39:47 +01:00
1 parent 2e19e6cf0e
commit 991a8472bf
1 file changed
+3 -1
@@ -186,10 +186,12 @@ private:
}
Console::Error::WriteLine("Unable to advertise (%d): %s", status, message);
// Hack for https://github.com/OpenRCT2/OpenRCT2/issues/6277
// Master server may not reply correctly if using IPv6, retry forcing IPv4
// Master server may not reply correctly if using IPv6, retry forcing IPv4,
// don't wait the full timeout.
if (!_forceIPv4 && status == 500)
{
_forceIPv4 = true;
_lastAdvertiseTime = 0;
log_info("Retry with ipv4 only");
}
}