Do not update on uninstall

This commit is contained in:
Girish Ramakrishnan
2019-08-29 14:38:42 -07:00
parent bb62e6a318
commit 9391a934c3

View File

@@ -600,7 +600,7 @@ function scheduleTask(appId, args, values, callback) {
if (error && (error.crashed || error.stopped)) {
debug(`Apptask crashed/stopped: ${error.message}`);
appdb.update(appId, { installationState: appdb.ISTATE_ERROR, errorMessage: error.message, taskId: null }, NOOP_CALLBACK);
} else {
} else if (values.installationState !== appdb.ISTATE_PENDING_UNINSTALL) {
appdb.update(appId, { taskId: null }, NOOP_CALLBACK);
}
});