summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-17 15:06:47 +0100
committerGitHub <noreply@github.com>2020-03-17 15:06:47 +0100
commit11341e6c244ab667daa6b9d7e2ca5f7e253edd18 (patch)
treea87fa150fda11329fa0cf41309ddf4bbbcc34f78 /apps/files
parent54baf610f9b373da53aed92e4241b7012a57941a (diff)
parentd851d2e08bb48c464d355a535601361cac1f3441 (diff)
downloadnextcloud-server-11341e6c244ab667daa6b9d7e2ca5f7e253edd18.tar.gz
nextcloud-server-11341e6c244ab667daa6b9d7e2ca5f7e253edd18.zip
Merge pull request #19987 from nextcloud/bugfix/noid/disable-storage-stats-without-session_keepalive
Only do regular polling of storage statistics if session_keepalive is enabled
Diffstat (limited to 'apps/files')
-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 1438fc504e6..28e4c5f575a 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -291,7 +291,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;