diff --git a/src/taskmanager.js b/src/taskmanager.js index 19e03f67b..168cfc590 100644 --- a/src/taskmanager.js +++ b/src/taskmanager.js @@ -28,6 +28,8 @@ function initialize(callback) { if (error) return callback(error); apps.forEach(function (app) { + if (app.installationState === appdb.ISTATE_INSTALLED && app.runState === appdb.RSTATE_RUNNING) return; + debug('Creating process for %s (%s) with state %s', app.location, app.id, app.installationState); startAppTask(app.id); });