Skip to content

Commit e1a8db4

Browse files
fix(lock): always check for a previously registered lazy provider too
LockManager::registerLazyLockProvider() checks for both eager and lazy, but the older registerLockProvider() did not. Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 131e28f commit e1a8db4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Lock/LockManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LockManager implements ILockManager {
2121
private ?LockContext $lockInScope = null;
2222

2323
public function registerLockProvider(ILockProvider $lockProvider): void {
24-
if ($this->lockProvider) {
24+
if ($this->lockProvider || $this->lockProviderClass) {
2525
throw new PreConditionNotMetException('There is already a registered lock provider');
2626
}
2727

0 commit comments

Comments
 (0)