From 0e75f40eb4303c97c00a0b9a859fd3ff579b6c8e Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Thu, 18 Sep 2014 12:32:48 -0700 Subject: [PATCH] fix chrome unlock infinite loop issue --- lib/devices/android/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/devices/android/chrome.js b/lib/devices/android/chrome.js index 7bff18d43..7fc584fd5 100644 --- a/lib/devices/android/chrome.js +++ b/lib/devices/android/chrome.js @@ -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);