Tear down in catch of an Exception

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/36115/head
Côme Chilliet 3 years ago
parent 4edb96080d
commit 1de26c84dd
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      apps/provisioning_api/lib/Controller/AUserData.php

@ -277,6 +277,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…
Cancel
Save