Tear down in catch of an Exception

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-01-12 17:54:55 +01:00 committed by backportbot-nextcloud[bot]
parent eac6d9f36f
commit f3d7292ce2

View file

@ -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;