Compare commits

...

3 Commits

Author SHA1 Message Date
JanDragon 42b8d9c2d6
Update config.sample.php 2020-01-16 07:37:35 +01:00
JanDragon 916b52e097
Update Availability.php 2020-01-16 07:36:28 +01:00
JanDragon 072a6e66fa
Fixed occ files:scan crashes on StorageNotAvailableException 2020-01-14 18:34:36 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -1496,7 +1496,7 @@ $CONFIG = array(
* *
* Defaults to ``1800`` (seconds) * Defaults to ``1800`` (seconds)
*/ */
'external_storage.auth_availability_delay' => 1800, $this->config->getSystemValueInt('external_storage.auth_availability_delay', 1800),
/** /**
* Specifies how often the local filesystem (the Nextcloud data/ directory, and * Specifies how often the local filesystem (the Nextcloud data/ directory, and

View File

@ -454,7 +454,7 @@ class Availability extends Wrapper {
if($e instanceof StorageAuthException) { if($e instanceof StorageAuthException) {
$delay = max( $delay = max(
// 30min // 30min
$this->config->getSystemValueInt('external_storage.auth_availability_delay', 1800), '(int)$this->config->getSystemValue('external_storage.auth_availability_delay', 1800),
self::RECHECK_TTL_SEC self::RECHECK_TTL_SEC
); );
} }