Added timeout to Connector DownloadClient

This commit is contained in:
glax 2023-06-20 14:58:02 +02:00
parent e883277400
commit a809b7c285

View File

@ -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<byte, DateTime> _lastExecutedRateLimit;
private readonly Dictionary<byte, TimeSpan> _rateLimit;