mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
fix chrome unlock infinite loop issue
This commit is contained in:
@@ -83,7 +83,7 @@ ChromeAndroid.prototype.start = function (cb, onDie) {
|
||||
async.series([
|
||||
this.prepareDevice.bind(this),
|
||||
this.prepareChromedriver.bind(this),
|
||||
this.unlock.bind(this),
|
||||
this.pushAndUnlock.bind(this),
|
||||
this.forwardPort.bind(this),
|
||||
this.pushAppium.bind(this),
|
||||
this.uiautomator.start.bind(this.uiautomator),
|
||||
@@ -112,7 +112,7 @@ ChromeAndroid.prototype.prepareChromedriver = function (cb) {
|
||||
cb();
|
||||
};
|
||||
|
||||
ChromeAndroid.prototype.unlock = function (cb) {
|
||||
ChromeAndroid.prototype.pushAndUnlock = function (cb) {
|
||||
this.pushUnlock(function (err) {
|
||||
if (err) return cb(err);
|
||||
this.unlock(cb);
|
||||
|
||||
Reference in New Issue
Block a user