From 622b02c478447f9d46e3afa768d592ba657d5028 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 9 Jan 2024 01:24:34 +0200 Subject: [PATCH] Use last history item in FailedDownloadService --- src/NzbDrone.Core/Download/FailedDownloadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/FailedDownloadService.cs b/src/NzbDrone.Core/Download/FailedDownloadService.cs index 2562e25a3..ecdcafd06 100644 --- a/src/NzbDrone.Core/Download/FailedDownloadService.cs +++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs @@ -116,7 +116,7 @@ public void ProcessFailed(TrackedDownload trackedDownload) private void PublishDownloadFailedEvent(List historyItems, string message, TrackedDownload trackedDownload = null, bool skipRedownload = false) { - var historyItem = historyItems.First(); + var historyItem = historyItems.Last(); var downloadFailedEvent = new DownloadFailedEvent {