diff --git a/Tranga/TaskManager.cs b/Tranga/TaskManager.cs index aca744b..037f434 100644 --- a/Tranga/TaskManager.cs +++ b/Tranga/TaskManager.cs @@ -84,7 +84,7 @@ public class TaskManager } foreach (TrangaTask timedOutTask in _allTasks - .Where(taskQuery => taskQuery.lastChange.Add(TimeSpan.FromMinutes(3)) < DateTime.Now)) + .Where(taskQuery => taskQuery.lastChange < DateTime.Now.Subtract(TimeSpan.FromMinutes(3)))) { if(timedOutTask is DownloadChapterTask dct) _runningDownloadChapterTasks[dct].Cancel();