From 173fd250cbd777e938babb42d66a7da10e79f5f2 Mon Sep 17 00:00:00 2001 From: fumiama Date: Sat, 15 Jan 2022 15:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20fix:=20manager=20timer=20pani?= =?UTF-8?q?c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_manager/timer/timer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_manager/timer/timer.go b/plugin_manager/timer/timer.go index a16fbd4a..d9abf0ea 100644 --- a/plugin_manager/timer/timer.go +++ b/plugin_manager/timer/timer.go @@ -39,10 +39,10 @@ var ( // NewClock 添加一个新时钟 func NewClock(db *sql.Sqlite) (c Clock) { - c.loadTimers(db) c.cron = cron.New() c.entries = make(map[uint32]cron.EntryID) c.timers = &map[uint32]*Timer{} + c.loadTimers(db) c.cron.Start() return }