From: Julius Härtl Date: Mon, 16 Mar 2020 14:59:41 +0000 (+0100) Subject: Only do regular polling of storage statistics if session_keepalive is enabled X-Git-Tag: v19.0.0beta1~103^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F19987%2Fhead;p=nextcloud-server.git Only do regular polling of storage statistics if session_keepalive is enabled Signed-off-by: Julius Härtl --- 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;