only initialize once

This commit is contained in:
Robin Appelman 2015-09-04 16:48:45 +02:00 committed by Morris Jobke
parent 88f03192ba
commit 7d53427ee6
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,8 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
*/
private $user;
private $initialized = false;
public function __construct($arguments) {
$this->share = $arguments['share'];
$this->ownerView = $arguments['ownerView'];
@ -68,6 +70,10 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
}
private function init() {
if ($this->initialized) {
return;
}
$this->initialized = true;
Filesystem::initMountPoints($this->share['uid_owner']);
// for updating our etags when changes are made to the share from the owners side (probably indirectly by us trough another share)