Fixed some nullable types

This commit is contained in:
2023-05-22 21:44:52 +02:00
parent a71d65e666
commit eddf50483f
3 changed files with 8 additions and 3 deletions

View File

@ -20,6 +20,10 @@ public abstract class Connector
{
this.downloadLocation = downloadLocation;
this.logger = logger;
this.downloadClient = new DownloadClient(new Dictionary<byte, int>()
{
//RequestTypes for RateLimits
}, logger);
}
public abstract string name { get; } //Name of the Connector (e.g. Website)
@ -219,6 +223,7 @@ public abstract class Connector
}
catch (HttpRequestException e)
{
logger?.WriteLine(this.GetType().ToString(), e.Message);
Thread.Sleep(_rateLimit[requestType] * 2);
}
}