From 79fb97ba608b1e9d12140624e4df079d55b63c6e Mon Sep 17 00:00:00 2001 From: rockbot Date: Mon, 23 Dec 2013 10:03:42 -0800 Subject: [PATCH] first attempt at fixing appium avd startup bug --- lib/devices/android/android-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devices/android/android-common.js b/lib/devices/android/android-common.js index 5b0fb74a476..db0aa1dbb96 100644 --- a/lib/devices/android/android-common.js +++ b/lib/devices/android/android-common.js @@ -47,7 +47,7 @@ androidCommon.checkAppPresent = function(cb) { androidCommon.prepareEmulator = function(cb) { if (this.avdName !== null) { this.adb.getRunningAVDName(function(err, runningAVDName) { - if (err) return cb(err); + if (err && err.message.indexOf('No devices') === -1) return cb(err); if (this.avdName.replace('@','') === runningAVDName) { logger.info("Did not launch AVD because it was already running."); return cb();