From a728f44a1ed8075e68542f3f81e8bfe60cf6e05d 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 1ac4ec3f4..e32f28833 100644 --- a/src/NzbDrone.Core/Download/FailedDownloadService.cs +++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs @@ -116,7 +116,7 @@ namespace NzbDrone.Core.Download 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 {