From 4f924be982ba8c780abdc4494bb6e849ee828965 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Wed, 8 Apr 2020 18:25:52 +0800 Subject: [PATCH] TODO --- hunter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hunter.go b/hunter.go index c26d023..284d86e 100644 --- a/hunter.go +++ b/hunter.go @@ -97,7 +97,7 @@ func (hunter *Hunter) execute(task ITask) { btask.SetParent(nil) btask.SetChildren(hunter.createQueue()) - cxt.parent = btask + cxt.current = btask cxt.hunter = hunter cxt.AddTask(task) @@ -108,7 +108,7 @@ func (hunter *Hunter) recursionTasks(cxt *TaskContext) { 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 { ncxt := NewContext()