Do not start apptask for apps that are installed and running

This commit is contained in:
Girish Ramakrishnan
2015-09-08 10:24:39 -07:00
parent 71fe643099
commit e97b9fcc60

View File

@@ -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);
});