Merge pull request #19884 from owncloud/locking_exception
catch all exception if table doesn't exists
This commit is contained in:
commit
1a84c8e9d2
|
@ -187,7 +187,7 @@ class DBLockingProvider extends AbstractLockingProvider {
|
|||
public function __destruct() {
|
||||
try {
|
||||
$this->cleanEmptyLocks();
|
||||
} catch (\PDOException $e) {
|
||||
} catch (\Exception $e) {
|
||||
// If the table is missing, the clean up was successful
|
||||
if ($this->connection->tableExists('file_locks')) {
|
||||
throw $e;
|
||||
|
|
Loading…
Reference in New Issue