summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-01-12 17:54:55 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-01-12 17:54:55 +0100
commit1de26c84dd8e6e41c92df6a8fbcbdf30933ecc88 (patch)
tree4f99548e79e48067019fca3b1337aa8024d1414d /apps/provisioning_api
parent4edb96080ded280cbcf47cca84f8f133278f6bb1 (diff)
downloadnextcloud-server-1de26c84dd8e6e41c92df6a8fbcbdf30933ecc88.tar.gz
nextcloud-server-1de26c84dd8e6e41c92df6a8fbcbdf30933ecc88.zip
Tear down in catch of an Exception
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r--apps/provisioning_api/lib/Controller/AUserData.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php
index e9855eebe91..909f3dcca74 100644
--- a/apps/provisioning_api/lib/Controller/AUserData.php
+++ b/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;