From 07295260cb4a93e9d5d86fdd92d4474276d7b55e Mon Sep 17 00:00:00 2001 From: boyce Date: Fri, 26 Mar 2021 09:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dticker=E4=B8=8Ecron=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=99=A8=E5=86=85=E5=AD=98=E6=B1=A0=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/timer/timer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/timer/timer.go b/util/timer/timer.go index 1508a4c..12968fa 100644 --- a/util/timer/timer.go +++ b/util/timer/timer.go @@ -142,6 +142,7 @@ func (t *Timer) UnRef(){ } func (c *Cron) Reset(){ + c.Timer.Reset() } func (c *Cron) IsRef()bool{ @@ -157,6 +158,7 @@ func (c *Cron) UnRef(){ } func (c *Ticker) Reset(){ + c.Timer.Reset() } func (c *Ticker) IsRef()bool{