]> git.mxchange.org Git - friendica.git/commitdiff
remove confusing finally block
authorArt4 <art4@wlabs.de>
Fri, 22 Nov 2024 10:53:26 +0000 (10:53 +0000)
committerArt4 <art4@wlabs.de>
Fri, 22 Nov 2024 10:53:26 +0000 (10:53 +0000)
src/Core/Lock/Type/DatabaseLock.php

index 9699522807feb9c67f34ad6532ae2970f122b23d..d05871689cead8b782133b033de7f78bd06040dd 100644 (file)
@@ -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;
        }
 }