fix chrome unlock infinite loop issue

This commit is contained in:
Jonathan Lipps
2014-09-18 12:32:48 -07:00
parent e40d38d758
commit 0e75f40eb4
+2 -2
View File
@@ -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);