Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-10-11 00:25:34 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-10-11 00:25:34 +0300
commit0df4cdc66005b580f565ce18ba8e4f12e6166995 (patch)
tree416b69e89eee2c47c4e90f46c0deaf5bf30eff9d /apps
parent94f7f3824b7903f370c8975d508aadd726d13cc5 (diff)
Tear down FS after user update in CardDAV sync job (#26320)
Because fetching the user information will also fetch the avatar, the avatar code sets up the FS and leaves the mount points cached, we need to call tearDownFS to clear that up.
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CardDAV/SyncService.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php
index 859b636c73a..e3e3c931932 100644
--- a/apps/dav/lib/CardDAV/SyncService.php
+++ b/apps/dav/lib/CardDAV/SyncService.php
@@ -263,6 +263,8 @@ class SyncService {
$systemAddressBook = $this->getLocalSystemAddressBook();
$this->userManager->callForAllUsers(function($user) use ($systemAddressBook, $progressCallback) {
$this->updateUser($user);
+ // avatar fetching sets up FS, need to clear again
+ \OC_Util::tearDownFS();
if (!is_null($progressCallback)) {
$progressCallback();
}