Commit cdcd1582 by Johannes Edmeier

Fix broken info fetching

parent 34b2a071
...@@ -78,7 +78,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG ...@@ -78,7 +78,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
var queueRefresh = function (application) { var queueRefresh = function (application) {
application.refreshing = true; application.refreshing = true;
if (runningRefreshs++ >= 15) { if (runningRefreshs++ >= 15) {
refreshQueue.push([application]); refreshQueue.push(application);
} else { } else {
refresh(application); refresh(application);
} }
...@@ -89,7 +89,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG ...@@ -89,7 +89,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
application.refreshing = false; application.refreshing = false;
runningRefreshs--; runningRefreshs--;
if (refreshQueue.length > 0) { if (refreshQueue.length > 0) {
refresh(application); refresh(refreshQueue.pop());
} }
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment