mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -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
1a28da62b2
commit
36e5584712
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