Compare commits

..

No commits in common. "f0880cdf132010ea4304d7529cb33cb9d90a709e" and "da747f2af86890ba4eb2fa2104cb14095b808f3a" have entirely different histories.

View file

@ -73,15 +73,15 @@ class SessionLockRequestComponent implements ComponentInterface
$this->logger->debug('SessionLock: Try to get "' . $key . '"');
$timedOut = \time() + $this->secondsToWait;
while (!$lock->acquire()) {
while (!$lock->acquire() || $timedOut <= \time()) {
\usleep(100000);
if (\time() >= $timedOut) {
}
if (!$lock->isAcquired()) {
throw new LockAcquiringException(
'Could not acquire the lock for "' . $key . '" in ' . $this->secondsToWait . ' seconds.',
1652687960
);
}
}
$this->logger->debug('SessionLock: Acquired "' . $key . '"');
}
}