mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
update: timeout to wait the result of downloading version info
This commit is contained in:
parent
879f3cd76c
commit
49abab2903
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ namespace SourceGit
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Fetch lastest release information.
|
// 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");
|
var data = await client.GetStringAsync("https://sourcegit-scm.github.io/data/version.json");
|
||||||
|
|
||||||
// Parse json into Models.Version.
|
// Parse json into Models.Version.
|
||||||
|
|
Loading…
Reference in a new issue