mirror of
https://github.com/appium/appium.git
synced 2026-02-20 01:29:36 -06:00
Merge pull request #2960 from moizjv/fix-2959
Adding additional check to if shutdown is already in process
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user