mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
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>
This commit is contained in:
parent
131e28f8df
commit
e1a8db4cd9
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class LockManager implements ILockManager {
|
|||
private ?LockContext $lockInScope = null;
|
||||
|
||||
public function registerLockProvider(ILockProvider $lockProvider): void {
|
||||
if ($this->lockProvider) {
|
||||
if ($this->lockProvider || $this->lockProviderClass) {
|
||||
throw new PreConditionNotMetException('There is already a registered lock provider');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue