Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 279bd6d82d | |||
| 5dced28228 |
@@ -62,7 +62,7 @@ public static class MainDI
|
|||||||
services
|
services
|
||||||
.AddHttpClient(nameof(DelugeService), x =>
|
.AddHttpClient(nameof(DelugeService), x =>
|
||||||
{
|
{
|
||||||
x.Timeout = TimeSpan.FromSeconds(5);
|
x.Timeout = TimeSpan.FromSeconds(config.Timeout);
|
||||||
})
|
})
|
||||||
.ConfigurePrimaryHttpMessageHandler(_ =>
|
.ConfigurePrimaryHttpMessageHandler(_ =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ public sealed class DownloadCleaner : GenericHandler
|
|||||||
|
|
||||||
public override async Task ExecuteAsync()
|
public override async Task ExecuteAsync()
|
||||||
{
|
{
|
||||||
|
if (_downloadClientConfig.DownloadClient is Common.Enums.DownloadClient.None)
|
||||||
|
{
|
||||||
|
_logger.LogWarning("download client is set to none");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_config.Categories?.Count is null or 0)
|
if (_config.Categories?.Count is null or 0)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("no categories configured");
|
_logger.LogWarning("no categories configured");
|
||||||
|
|||||||
Reference in New Issue
Block a user