diff --git a/lib/Service/LockService.php b/lib/Service/LockService.php index bc6bf543..c443e26c 100644 --- a/lib/Service/LockService.php +++ b/lib/Service/LockService.php @@ -169,7 +169,7 @@ public function lock(LockContext $lockScope): FileLock { $known->getType() === $lockScope->getType() && ($known->getOwner() === $lockScope->getOwner() || $known->getToken() === $lockScope->getOwner()) ) { $known->setTimeout( - $known->getTimeout() - $known->getETA() + $this->configService->getTimeoutSeconds() + $known->getETA() !== FileLock::ETA_INFINITE ? $known->getTimeout() - $known->getETA() + $this->configService->getTimeoutSeconds() : 0 ); $this->notice('extending existing lock', false, ['fileLock' => $known]); $this->locksRequest->update($known);