summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-03-03 14:19:34 +0100
committerRobin Appelman <icewind@owncloud.com>2016-03-03 14:19:34 +0100
commit6990100e6ed6d1efe48e2688331df5ce364f9fd5 (patch)
treebad3332a3cc420eef51fabaf7b4ee799ab8f27d4 /apps
parent4f25f341788b3edad1bf4baf739cd632785c9abb (diff)
downloadnextcloud-server-6990100e6ed6d1efe48e2688331df5ce364f9fd5.tar.gz
nextcloud-server-6990100e6ed6d1efe48e2688331df5ce364f9fd5.zip
allow availability recheck for external storages
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/config/configadapter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php
index 51c2debd726..f097d55a316 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/config/configadapter.php
@@ -23,6 +23,7 @@
namespace OCA\Files_External\Config;
+use OC\Files\Storage\Wrapper\Availability;
use OCA\Files_external\Migration\StorageMigrator;
use OCP\Files\Storage;
use OC\Files\Mount\MountPoint;
@@ -132,7 +133,7 @@ class ConfigAdapter implements IMountProvider {
try {
$availability = $impl->getAvailability();
- if (!$availability['available']) {
+ if (!$availability['available'] && !Availability::shouldRecheck($availability)) {
$impl = new FailedStorage(['exception' => null]);
}
} catch (\Exception $e) {