From 991a8472bfadbf6708d92f0f308ae86893836fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 12 Feb 2018 20:31:26 +0100 Subject: [PATCH] If forcing IPv4, retry immediately rather than wait 2 minutes --- src/openrct2/network/NetworkServerAdvertiser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/network/NetworkServerAdvertiser.cpp b/src/openrct2/network/NetworkServerAdvertiser.cpp index 26d8dcf2b6..2af7d5d6ef 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.cpp +++ b/src/openrct2/network/NetworkServerAdvertiser.cpp @@ -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"); } }