diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-16 15:59:41 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-16 15:59:41 +0100 |
commit | d851d2e08bb48c464d355a535601361cac1f3441 (patch) | |
tree | 3fc5ba42e81ca177284f4260dbb27b0274af6cf9 /apps/files/js | |
parent | 48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff) | |
download | nextcloud-server-d851d2e08bb48c464d355a535601361cac1f3441.tar.gz nextcloud-server-d851d2e08bb48c464d355a535601361cac1f3441.zip |
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.js | 2 |
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; |