[TB] fix: timeout to use settings timeout val

This commit is contained in:
Sam Heinz 2025-03-12 22:50:18 +10:00
parent 087653e5b6
commit ea9c90552b

View file

@ -312,7 +312,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
using (HttpClient client = new())
{
client.Timeout = TimeSpan.FromSeconds(30);
client.Timeout = TimeSpan.FromSeconds(Settings.Get.Provider.Timeout);
var request = new HttpRequestMessage(HttpMethod.Head, uri);
var response = await client.SendAsync(request);
if (response.Content.Headers.ContentDisposition != null)