Skip to content

Commit

Permalink
Update lib/BackgroundJobs/IndexerJob.php
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr authored Oct 21, 2024
1 parent 03bb432 commit 921cb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/IndexerJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 921cb07

Please sign in to comment.