Revert "dont die if we try to access the shared cache while setting up the shared storage"

Revent accidental push

This reverts commit ed89034047.
This commit is contained in:
Robin Appelman 2017-06-19 14:00:27 +02:00
parent 64864bf654
commit e76081e858
No known key found for this signature in database
GPG key ID: CBCA68FBAEBF98C9

View file

@ -27,7 +27,6 @@
namespace OCA\Files_Sharing;
use OC\Files\Cache\FailedCache;
use OC\Files\Cache\Wrapper\CacheJail;
use OCP\Files\Cache\ICacheEntry;
@ -69,13 +68,7 @@ class Cache extends CacheJail {
public function getCache() {
if (is_null($this->cache)) {
$sourceStorage = $this->storage->getSourceStorage();
if ($sourceStorage) {
$this->cache = $sourceStorage->getCache();
} else {
// don't set $this->cache here since sourceStorage will be set later
return new FailedCache();
}
$this->cache = $this->storage->getSourceStorage()->getCache();
}
return $this->cache;
}