only fetch app when there is an active task

fixes cloudron/box#677
This commit is contained in:
Girish Ramakrishnan
2020-06-08 18:01:19 -07:00
parent 81bf84b50a
commit dce865c3cb

View File

@@ -1821,8 +1821,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
return iteratorCallback();
}
if (that._installedAppsById[app.id] && that._installedAppsById[app.id].ts === app.ts) {
if (!app.taskId) return iteratorCallback(); // app has not changed and no task to check progress
if (that._installedAppsById[app.id]) {
if (!app.taskId) return iteratorCallback(); // app has active task, get latest
}
that.refreshAppCache(app.id, iteratorCallback);