Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-16 17:59:41 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-03-17 17:08:22 +0300
commitdca0f7e760a7ff2a00ee2c3578dcb3029207cee0 (patch)
tree180da5dbd9490a6ffd7bd59514c6451014080db4 /apps/files/js
parentef515358ef14f925d2993b3c037920d71e31d242 (diff)
Only do regular polling of storage statistics if session_keepalive is enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 395b2a53c10..4d285e426d5 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -289,7 +289,7 @@
setTimeout(Files.displayStorageWarnings, 100);
// only possible at the moment if user is logged in or the files app is loaded
- if (OC.currentUser && OCA.Files.App) {
+ if (OC.currentUser && OCA.Files.App && OC.config.session_keepalive) {
// start on load - we ask the server every 5 minutes
var func = _.bind(OCA.Files.App.fileList.updateStorageStatistics, OCA.Files.App.fileList);
var updateStorageStatisticsInterval = 5*60*1000;