do not check for updates for stopped apps

This commit is contained in:
Girish Ramakrishnan
2020-03-15 09:44:15 -07:00
parent 9ea12e71f0
commit 23ee758ac9

View File

@@ -82,6 +82,7 @@ function checkAppUpdates(callback) {
async.eachSeries(result, function (app, iteratorDone) {
if (app.appStoreId === '') return iteratorDone(); // appStoreId can be '' for dev apps
if (app.runState === apps.RSTATE_STOPPED) return iteratorDone(); // stopped apps won't run migration scripts and shouldn't be updated
appstore.getAppUpdate(app, function (error, updateInfo) {
if (error) {