Skip to content

Commit

Permalink
Remote: Fix server timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Jun 9, 2024
1 parent 77d66e8 commit 2316dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RemoteDownloaderPlugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public async Task<bool> FetchRemote()
try
{
using HttpClient client = new();
client.Timeout = TimeSpan.FromSeconds(2);
var data = await client.GetStringAsync(Storage.Data.IndexUrl);
_cachedRemote = JsonConvert.DeserializeObject<Remote>(data)!;

Expand Down

0 comments on commit 2316dfb

Please sign in to comment.