From 46a036ef265951d5371936b37d7296fa47fb28ce Mon Sep 17 00:00:00 2001 From: "Rizal M. S" Date: Mon, 25 Jun 2018 13:44:37 +0700 Subject: [PATCH] CB-14165 Emulator: handle "device still connecting" error (#457) Keep waiting for emulator when connection fails with "device still connecting" error --- bin/templates/cordova/lib/emulator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/emulator.js b/bin/templates/cordova/lib/emulator.js index 82106bb7..243b1fb5 100644 --- a/bin/templates/cordova/lib/emulator.js +++ b/bin/templates/cordova/lib/emulator.js @@ -342,7 +342,8 @@ module.exports.wait_for_emulator = function (port) { }, function (error) { if ((error && error.message && (error.message.indexOf('not found') > -1)) || - (error.message.indexOf('device offline') > -1)) { + (error.message.indexOf('device offline') > -1) || + (error.message.indexOf('device still connecting') > -1)) { // emulator not yet started, continue waiting return self.wait_for_emulator(port); } else {