@@ -42,7 +42,6 @@ function resume() {
|
||||
appdb.getAll(function (error, apps) {
|
||||
if (error) throw error;
|
||||
apps.forEach(function (app) {
|
||||
if (app.installationState === appdb.ISTATE_INSTALLED) return;
|
||||
debug('Creating process for ' + app.id + ' with state ' + app.installationState);
|
||||
tasks[app.id] = child_process.fork(__dirname + '/apptask.js', [ app.id ]);
|
||||
});
|
||||
|
||||
@@ -609,6 +609,7 @@ function startTask(appId, callback) {
|
||||
if (app.runState === appdb.RSTATE_PENDING_STOP) {
|
||||
stopApp(app, callback);
|
||||
} else {
|
||||
debug('Resuming app : %s', app.id);
|
||||
runApp(app, callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user