diff --git a/src/apps.js b/src/apps.js index b9a34755a..bd681edfa 100644 --- a/src/apps.js +++ b/src/apps.js @@ -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); } });