2
0

Fix wrong query from allTasks to runningTasks

This commit is contained in:
glax 2023-06-30 00:23:00 +02:00
parent 9ae8ca65df
commit 1735bbcf8a

View File

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