Fix wrong query from allTasks to runningTasks
This commit is contained in:
parent
9ae8ca65df
commit
1735bbcf8a
@ -82,7 +82,7 @@ public class TaskManager
|
||||
}
|
||||
}
|
||||
|
||||
foreach (TrangaTask timedOutTask in _allTasks
|
||||
foreach (TrangaTask timedOutTask in _runningTasks.Keys
|
||||
.Where(taskQuery => taskQuery.lastChange < DateTime.Now.Subtract(TimeSpan.FromMinutes(3))))
|
||||
{
|
||||
_runningTasks[timedOutTask].Cancel();
|
||||
|
Loading…
Reference in New Issue
Block a user