diff options
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r-- | apps/files_sharing/lib/sharedmount.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php index f8def2c6a82..564ac43ec74 100644 --- a/apps/files_sharing/lib/sharedmount.php +++ b/apps/files_sharing/lib/sharedmount.php @@ -143,8 +143,10 @@ class SharedMount extends Mount implements MoveableMount { * @return bool */ public function removeMount() { + $mountManager = \OC\Files\Filesystem::getMountManager(); $storage = $this->getStorage(); $result = \OCP\Share::unshareFromSelf($storage->getItemType(), $storage->getMountPoint()); + $mountManager->removeMount($this->mountPoint); return $result; } |