From 1be3e98ad7eda878b64ddf96b1dd1e23d3d2cd7b Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Sun, 6 Jul 2025 22:05:29 +0100 Subject: [PATCH] Update server/RdtClient.Service/Services/TorrentRunner.cs Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com> --- server/RdtClient.Service/Services/TorrentRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index 92968c0..6d67817 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -349,7 +349,7 @@ public class TorrentRunner(ILogger logger, Torrents torrents, Dow allTorrents = await torrents.Get(); var completeTorrents = allTorrents.Where(m => m.Completed != null); - var torrentsToDelete = completeTorrents.Where(m => DateTime.UtcNow >= m.Completed?.AddMinutes(m.FinishedActionDelay) && m.Error == null); + var torrentsToDelete = completeTorrents.Where(m => DateTimeOffset.UtcNow >= m.Completed?.AddMinutes(m.FinishedActionDelay) && m.Error == null); foreach (var torrent in torrentsToDelete) {