mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
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…
x
Reference in New Issue
Block a user