From 5903234295a397d2ef05399c58ea8c66f79b8e8f Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 15 Jun 2023 21:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/sys/timewheel/timewheel.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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...)