From da575fd94e838aec3cfdb2000efb46093c59da00 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 Closes #1376 --- .../Download/DownloadProcessingService.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/NzbDrone.Core/Download/DownloadProcessingService.cs b/src/NzbDrone.Core/Download/DownloadProcessingService.cs index daf4ab8f96..67cc5bc375 100644 --- a/src/NzbDrone.Core/Download/DownloadProcessingService.cs +++ b/src/NzbDrone.Core/Download/DownloadProcessingService.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using NLog; using NzbDrone.Core.Configuration; using NzbDrone.Core.Download.TrackedDownloads; @@ -33,14 +31,6 @@ public class DownloadProcessingService : IExecute 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; @@ -66,12 +56,6 @@ public void Execute(ProcessMonitoredDownloadsCommand message) } } - if (enableCompletedDownloadHandling && _configService.RemoveCompletedDownloads) - { - // Remove tracked downloads that are now complete - RemoveCompletedDownloads(trackedDownloads); - } - _eventAggregator.PublishEvent(new DownloadsProcessedEvent()); } }