mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +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) {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user