From 2316dfb439d8a927bcee85ca528f957afec74745 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:12:49 +0200 Subject: [PATCH] Remote: Fix server timeout --- RemoteDownloaderPlugin/Plugin.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/RemoteDownloaderPlugin/Plugin.cs b/RemoteDownloaderPlugin/Plugin.cs index ce952e6..723e369 100644 --- a/RemoteDownloaderPlugin/Plugin.cs +++ b/RemoteDownloaderPlugin/Plugin.cs @@ -94,6 +94,7 @@ public async Task FetchRemote() try { using HttpClient client = new(); + client.Timeout = TimeSpan.FromSeconds(2); var data = await client.GetStringAsync(Storage.Data.IndexUrl); _cachedRemote = JsonConvert.DeserializeObject(data)!;