Selaa lähdekoodia

Merge pull request #57 from mtojek/master

Fix larger amount of entries after host sleep
Rob Figueiredo 9 vuotta sitten
vanhempi
commit
8dc4916d41
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      cron.go

+ 1 - 1
cron.go

@@ -174,7 +174,7 @@ func (c *Cron) run() {
 				}
 				go c.runWithRecovery(e.Job)
 				e.Prev = e.Next
-				e.Next = e.Schedule.Next(effective)
+				e.Next = e.Schedule.Next(now)
 			}
 			continue