From 209f78717fdf50b3a81125da9cad1a11f78fe04e Mon Sep 17 00:00:00 2001 From: Marius Nechifor Date: Sat, 18 Jan 2025 19:12:28 +0200 Subject: [PATCH] Fix usenet usage (#46) --- code/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/code/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs b/code/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs index 7615561..0133c52 100644 --- a/code/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs +++ b/code/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs @@ -61,11 +61,6 @@ public sealed class QueueCleaner : GenericHandler QueueRecord record = group.First(); - if (record.Protocol is not "torrent") - { - continue; - } - if (!arrClient.IsRecordValid(record)) { continue; @@ -73,7 +68,7 @@ public sealed class QueueCleaner : GenericHandler StalledResult stalledCheckResult = new(); - if (_downloadClientConfig.DownloadClient is not Common.Enums.DownloadClient.None) + if (_downloadClientConfig.DownloadClient is not Common.Enums.DownloadClient.None && record.Protocol is "torrent") { // stalled download check stalledCheckResult = await _downloadService.ShouldRemoveFromArrQueueAsync(record.DownloadId);