From c862fd9ff6f58f0e3e1f11219eec98591b956f7f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 3 Mar 2020 20:00:01 -0800 Subject: [PATCH] Don't re-trigger completed event --- .../Download/DownloadProcessingService.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/NzbDrone.Core/Download/DownloadProcessingService.cs b/src/NzbDrone.Core/Download/DownloadProcessingService.cs index 20c17a137..85848c0eb 100644 --- a/src/NzbDrone.Core/Download/DownloadProcessingService.cs +++ b/src/NzbDrone.Core/Download/DownloadProcessingService.cs @@ -33,14 +33,6 @@ namespace NzbDrone.Core.Download _logger = logger; } - private void RemoveCompletedDownloads(List trackedDownloads) - { - foreach (var trackedDownload in trackedDownloads.Where(c => c.DownloadItem.CanBeRemoved && c.State == TrackedDownloadState.Imported)) - { - _eventAggregator.PublishEvent(new DownloadCompletedEvent(trackedDownload)); - } - } - public void Execute(ProcessMonitoredDownloadsCommand message) { var enableCompletedDownloadHandling = _configService.EnableCompletedDownloadHandling; @@ -64,13 +56,6 @@ namespace NzbDrone.Core.Download { _logger.Debug(e, "Failed to process download: {0}", trackedDownload.DownloadItem.Title); } - - } - - if (enableCompletedDownloadHandling && _configService.RemoveCompletedDownloads) - { - // Remove tracked downloads that are now complete - RemoveCompletedDownloads(trackedDownloads); } _eventAggregator.PublishEvent(new DownloadsProcessedEvent());