From a809b7c285746ebc367b92a26702d49019577823 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 20 Jun 2023 14:58:02 +0200 Subject: [PATCH] Added timeout to Connector DownloadClient --- Tranga/Connector.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index ffdf05b..cc60293 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -294,7 +294,10 @@ public abstract class Connector protected class DownloadClient { - private static readonly HttpClient Client = new(); + private static readonly HttpClient Client = new() + { + Timeout = TimeSpan.FromSeconds(60) + }; private readonly Dictionary _lastExecutedRateLimit; private readonly Dictionary _rateLimit;