]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only do regular polling of storage statistics if session_keepalive is enabled 19987/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 16 Mar 2020 14:59:41 +0000 (15:59 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 16 Mar 2020 14:59:41 +0000 (15:59 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/js/files.js

index 1438fc504e6056296dbd4038da41b1a667b9308f..28e4c5f575a0ab1bc28591cc43cd9b4aa340b62a 100644 (file)
                        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;