diff --git a/lego/sys/timewheel/timewheel.go b/lego/sys/timewheel/timewheel.go index 4dd421394..2e0f2acbd 100644 --- a/lego/sys/timewheel/timewheel.go +++ b/lego/sys/timewheel/timewheel.go @@ -185,7 +185,10 @@ func (this *TimeWheel) handleTick() { } if task.async { - go this.calltask(task, task.args...) + go func(task *Task) { + go this.calltask(task, task.args...) + }(task) + } else { // optimize gopool this.calltask(task, task.args...)