fixed unhandled panic and wrapped all internal goroutines
This commit is contained in:
+2
-2
@@ -193,7 +193,7 @@ func (c *Cron) Start() {
|
||||
c.runDue(time.Now())
|
||||
|
||||
// run after each tick
|
||||
go func() {
|
||||
routine.FireAndForget(func() {
|
||||
for {
|
||||
select {
|
||||
case <-c.tickerDone:
|
||||
@@ -202,7 +202,7 @@ func (c *Cron) Start() {
|
||||
c.runDue(t)
|
||||
}
|
||||
}
|
||||
}()
|
||||
})
|
||||
})
|
||||
c.mux.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user