diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-16 15:59:41 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-03-17 14:08:22 +0000 |
commit | dca0f7e760a7ff2a00ee2c3578dcb3029207cee0 (patch) | |
tree | 180da5dbd9490a6ffd7bd59514c6451014080db4 /apps/files/js | |
parent | ef515358ef14f925d2993b3c037920d71e31d242 (diff) | |
download | nextcloud-server-dca0f7e760a7ff2a00ee2c3578dcb3029207cee0.tar.gz nextcloud-server-dca0f7e760a7ff2a00ee2c3578dcb3029207cee0.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 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; |