mirror of
https://github.com/appium/appium.git
synced 2026-02-10 03:38:49 -06:00
make sure we don't shut uiautomator down if it's already gone (fix #1402)
This commit is contained in:
@@ -273,10 +273,15 @@ Android.prototype.cleanup = function() {
|
||||
|
||||
Android.prototype.shutdown = function(cb) {
|
||||
var next = function() {
|
||||
this.uiautomator.shutdown(function() {
|
||||
if (this.uiautomator) {
|
||||
this.uiautomator.shutdown(function() {
|
||||
this.cleanup();
|
||||
cb();
|
||||
}.bind(this));
|
||||
} else {
|
||||
this.cleanup();
|
||||
cb();
|
||||
}.bind(this));
|
||||
}
|
||||
}.bind(this);
|
||||
|
||||
if (this.adb) {
|
||||
|
||||
Reference in New Issue
Block a user