尝试修复同步任务大量出错后导致内存使用很大的问题

This commit is contained in:
gazebo
2020-01-17 22:16:00 +08:00
parent 4f30241f2a
commit 1a2f653561
3 changed files with 32 additions and 12 deletions

View File

@@ -186,6 +186,5 @@ func (task *ParallelTask) Run() {
}
func (t *ParallelTask) AddChild(task ITask) ITask {
task.SetParent(t)
return t.BaseTask.AddChild(task)
}