临时禁止tasksch.AddFailedList

This commit is contained in:
gazebo
2020-01-17 22:57:40 +08:00
parent 1a2f653561
commit d6600976e3

View File

@@ -399,13 +399,13 @@ func (t *BaseTask) AddFailedList(failedList ...interface{}) {
// defer t.locker.Unlock()
// t.FailedList = append(t.FailedList, failedList...)
if t.parent == nil || t.finishHook != nil {
t.locker.Lock()
defer t.locker.Unlock()
t.FailedList = append(t.FailedList, failedList...)
} else {
t.parent.AddFailedList(failedList...)
}
// if t.parent == nil || t.finishHook != nil {
// t.locker.Lock()
// defer t.locker.Unlock()
// t.FailedList = append(t.FailedList, failedList...)
// } else {
// t.parent.AddFailedList(failedList...)
// }
}
}