mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
修复crontab定时器释放不完整问题
This commit is contained in:
@@ -194,7 +194,6 @@ func (slf *Module) CronFunc(cronExpr *timer.CronExpr, cb func()) *timer.Cron {
|
||||
|
||||
cron := slf.dispatcher.CronFuncEx(cronExpr, func(cron *timer.Cron) {
|
||||
cb()
|
||||
delete(slf.mapActiveCron,cron)
|
||||
})
|
||||
|
||||
slf.mapActiveCron[cron] = nil
|
||||
|
||||
Reference in New Issue
Block a user