mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
🐛 fix: manager timer panic
This commit is contained in:
parent
89bdc1e496
commit
173fd250cb
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user