Merge pull request #2960 from moizjv/fix-2959

Adding additional check to if shutdown is already in process
This commit is contained in:
Jonathan Lipps
2014-06-26 02:37:10 -07:00

View File

@@ -363,6 +363,10 @@ Android.prototype.startApp = function (cb) {
};
Android.prototype.stop = function (cb) {
if (this.shuttingDown) {
logger.debug("Already in process of shutting down.");
return cb();
}
this.shuttingDown = true;
var completeShutdown = function (cb) {