roylee0704 / gron

gron, Cron Jobs in Go.
MIT License
1.03k stars 62 forks source link

fix the bug of dynamic adding job in cron.go #12

Open sstshenshutao opened 4 years ago

sstshenshutao commented 4 years ago

fix the bug of dynamic adding job ( the case: c.running ==true ), the calculation of new time must be done before the next round for loop.