From 49abab29034b285aa3163a6f731402d3c1f292c7 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 26 Apr 2024 09:40:02 +0800 Subject: [PATCH] update: timeout to wait the result of downloading version info --- src/App.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index eeacb56d..eb4655c4 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -164,7 +164,7 @@ namespace SourceGit try { // Fetch lastest release information. - var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(2) }; + var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(5) }; var data = await client.GetStringAsync("https://sourcegit-scm.github.io/data/version.json"); // Parse json into Models.Version.