Skip to content

Commit 173fd25

Browse files
committed
🐛 fix: manager timer panic
1 parent 89bdc1e commit 173fd25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin_manager/timer/timer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ var (
3939

4040
// NewClock 添加一个新时钟
4141
func NewClock(db *sql.Sqlite) (c Clock) {
42-
c.loadTimers(db)
4342
c.cron = cron.New()
4443
c.entries = make(map[uint32]cron.EntryID)
4544
c.timers = &map[uint32]*Timer{}
45+
c.loadTimers(db)
4646
c.cron.Start()
4747
return
4848
}

0 commit comments

Comments
 (0)