From 921cb0780327094bed5aa237c5d215e271d3d1f4 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 21 Oct 2024 08:27:59 +0200 Subject: [PATCH] Update lib/BackgroundJobs/IndexerJob.php Signed-off-by: Marcel Klehr --- lib/BackgroundJobs/IndexerJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()));