diff --git a/cron.php b/cron.php index 7d661621ed090..7a32aea6576c1 100644 --- a/cron.php +++ b/cron.php @@ -159,7 +159,7 @@ $executedJobs[$job->getId()] = true; unset($job); - if (time() > $endTime) { + if ($timeAfter > $endTime) { break; } }