Do not update on uninstall
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user