diff --git a/src/Core/Lock/Type/DatabaseLock.php b/src/Core/Lock/Type/DatabaseLock.php index 9699522807..d05871689c 100644 --- a/src/Core/Lock/Type/DatabaseLock.php +++ b/src/Core/Lock/Type/DatabaseLock.php @@ -192,11 +192,12 @@ class DatabaseLock extends AbstractLock array_push($keys, $key['name']); } } catch (\Exception $exception) { - throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception); - } finally { $this->dba->close($stmt); + throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception); } + $this->dba->close($stmt); + return $keys; } }