diff --git a/lib/BackgroundJobs/IndexerJob.php b/lib/BackgroundJobs/IndexerJob.php index b7d713b..f91fd0d 100644 --- a/lib/BackgroundJobs/IndexerJob.php +++ b/lib/BackgroundJobs/IndexerJob.php @@ -126,7 +126,7 @@ protected function index(array $files): void { $maxTime = $this->getMaxIndexingTime(); $startTime = time(); foreach ($files as $queueFile) { - if ($startTime + $maxTime > time()) { + if ($startTime + $maxTime < time()) { break; } $file = current($this->rootFolder->getById($queueFile->getFileId()));