From 7472e78755ca038d2185fe10c9502829bc6b6bda Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 22 Jun 2021 16:24:35 +0200 Subject: [PATCH] filemanager: Only retry every 2sec if path opening doesn't work right away to avoid busy loop --- src/js/filemanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/filemanager.js b/src/js/filemanager.js index fa5fc01f8..33f26243f 100644 --- a/src/js/filemanager.js +++ b/src/js/filemanager.js @@ -168,7 +168,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl } Client.filesGet($scope.id, $scope.type, parentPath, 'data', function (error, result) { - if (error) return openPath(path); // try again + if (error) return setTimeout(function () { openPath(path); }, 2000); // try again in some time // amend icons result.entries.forEach(function (e) {