From e05cf5e4de40b72855eaf3dbe78be630218de459 Mon Sep 17 00:00:00 2001 From: _BLU Date: Sun, 4 Dec 2022 17:41:39 +0100 Subject: [PATCH] Fixed check for update TimeoutError --- HermesProxy/Server.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HermesProxy/Server.cs b/HermesProxy/Server.cs index 41599164..d1d2bb82 100644 --- a/HermesProxy/Server.cs +++ b/HermesProxy/Server.cs @@ -25,8 +25,12 @@ partial class Server public static void ServerMain(CommandLineArguments args) { #if !DEBUG - if (!args.DisableVersionCheck) - CheckForUpdate().WaitAsync(TimeSpan.FromSeconds(8)).Wait(); // Max wait 8 sec, maybe there is some wierd network error + try + { + if (!args.DisableVersionCheck) + CheckForUpdate().WaitAsync(TimeSpan.FromSeconds(15)).Wait(); // Max wait 15 sec, maybe there is some wierd network error + } + catch { /* ignore */ } #endif Log.Print(LogType.Server, "Starting Hermes Proxy...");