diff --git a/lego/sys/timewheel/timewheel.go b/lego/sys/timewheel/timewheel.go index 811ee5bcb..e9677e47e 100644 --- a/lego/sys/timewheel/timewheel.go +++ b/lego/sys/timewheel/timewheel.go @@ -187,9 +187,8 @@ func (this *TimeWheel) handleTick() { if task.async { go func(_task *Task) { this.calltask(_task, _task.args...) - this.collectTask(task) + this.collectTask(_task) }(task) - } else { // optimize gopool this.calltask(task, task.args...)