remove RSTATE_ERROR

if startContainer failed, it will still returning success because
it running the db update result
This commit is contained in:
Girish Ramakrishnan
2015-10-11 11:15:09 -07:00
parent f366d41034
commit f48a2520c3
2 changed files with 1 additions and 5 deletions

View File

@@ -860,10 +860,7 @@ function uninstall(app, callback) {
function runApp(app, callback) {
startContainer(app, function (error) {
if (error) {
debugApp(app, 'Error starting container : %s', error);
return updateApp(app, { runState: appdb.RSTATE_ERROR }, callback);
}
if (error) return callback(error);
updateApp(app, { runState: appdb.RSTATE_RUNNING }, callback);
});