Skip to content

Commit

Permalink
Merge pull request #174 from 0blu/fix_update_timeout_error
Browse files Browse the repository at this point in the history
Fixed check for update TimeoutError
  • Loading branch information
0blu authored Dec 4, 2022
2 parents 686168c + e05cf5e commit 798c517
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions HermesProxy/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down

0 comments on commit 798c517

Please sign in to comment.