mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Tear down in catch of an Exception
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
eac6d9f36f
commit
f3d7292ce2
1 changed files with 2 additions and 0 deletions
|
|
@ -276,6 +276,8 @@ abstract class AUserData extends OCSController {
|
|||
'exception' => $e,
|
||||
]
|
||||
);
|
||||
/* In case the Exception left things in a bad state */
|
||||
\OC_Util::tearDownFS();
|
||||
return [];
|
||||
}
|
||||
return $data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue