Re-add task timeout
This commit is contained in:
parent
a05d4c8bd9
commit
4cb3694cd5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user