filemanager: Only retry every 2sec if path opening doesn't work right away to avoid busy loop
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user