mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-13 15:27:53 +02:00
Decrement progress of parenttask when childtask fails
This commit is contained in:
@ -127,6 +127,7 @@ public class TaskManager
|
||||
DateTime.Now.Subtract(removeTask.Key.lastChange) > TimeSpan.FromMinutes(3))//3 Minutes since last update to task -> remove
|
||||
{
|
||||
logger?.WriteLine(this.GetType().ToString(), $"Disposing failed task {removeTask.Key}.");
|
||||
removeTask.Key.parentTask?.DecrementProgress(removeTask.Key.progress);
|
||||
removeTask.Value.Dispose();;
|
||||
toRemove.Add(removeTask.Key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user