Commit ccd73ea0 by Johannes Edmeier

Fix broken info fetching

parent b2bee48a
...@@ -79,7 +79,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG ...@@ -79,7 +79,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);
} }
...@@ -90,7 +90,7 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG ...@@ -90,7 +90,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