Skip to content

Commit

Permalink
CB-14165 Emulator: handle "device still connecting" error (apache#457)
Browse files Browse the repository at this point in the history
Keep waiting for emulator when connection fails with "device still connecting" error
  • Loading branch information
rzlslch authored and jcesarmobile committed Aug 2, 2018
1 parent 7e475ad commit d386d9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/templates/cordova/lib/emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,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 {
Expand Down

0 comments on commit d386d9c

Please sign in to comment.