TODO
This commit is contained in:
parent
9a7bfe6c4d
commit
4f924be982
|
@ -97,7 +97,7 @@ func (hunter *Hunter) execute(task ITask) {
|
||||||
btask.SetParent(nil)
|
btask.SetParent(nil)
|
||||||
btask.SetChildren(hunter.createQueue())
|
btask.SetChildren(hunter.createQueue())
|
||||||
|
|
||||||
cxt.parent = btask
|
cxt.current = btask
|
||||||
cxt.hunter = hunter
|
cxt.hunter = hunter
|
||||||
cxt.AddTask(task)
|
cxt.AddTask(task)
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ func (hunter *Hunter) recursionTasks(cxt *TaskContext) {
|
||||||
|
|
||||||
autoid := 0
|
autoid := 0
|
||||||
|
|
||||||
for children := cxt.parent.Children(); children != nil && children.Size() > 0; {
|
for children := cxt.current.Children(); children != nil && children.Size() > 0; {
|
||||||
if itask, ok := children.Pop(); ok {
|
if itask, ok := children.Pop(); ok {
|
||||||
|
|
||||||
ncxt := NewContext()
|
ncxt := NewContext()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user