2
0

Re-add task timeout

This commit is contained in:
glax 2023-06-27 22:23:53 +02:00
parent a05d4c8bd9
commit 4cb3694cd5

View File

@ -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();