forked from github/cordova-android
CB-14165 Emulator: handle "device still connecting" error (#457)
Keep waiting for emulator when connection fails with "device still connecting" error
This commit is contained in:
parent
8a69e32800
commit
750531c4bc
3
bin/templates/cordova/lib/emulator.js
vendored
3
bin/templates/cordova/lib/emulator.js
vendored
@ -344,7 +344,8 @@ module.exports.wait_for_emulator = function (port) {
|
|||||||
}, function (error) {
|
}, function (error) {
|
||||||
if ((error && error.message &&
|
if ((error && error.message &&
|
||||||
(error.message.indexOf('not found') > -1)) ||
|
(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
|
// emulator not yet started, continue waiting
|
||||||
return self.wait_for_emulator(port);
|
return self.wait_for_emulator(port);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user