mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
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
e9750b5cab
commit
46a036ef26
3
bin/templates/cordova/lib/emulator.js
vendored
3
bin/templates/cordova/lib/emulator.js
vendored
@ -342,7 +342,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