Skip to content

Commit

Permalink
Merge pull request #5916 from cb1kenobi/timob-17347_3_3_X
Browse files Browse the repository at this point in the history
[TIMOB-17347] When checking if the Android package manager is running, a...
  • Loading branch information
skypanther committed Jul 21, 2014
2 parents 2e51fbd + b85e0b5 commit d637c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ exports.init = function (logger, config, cli) {

(function installApp() {
adb.shell(device.id, 'ps', function (err, output) {
if (output.indexOf('system_server') === -1) {
if (err || output.toString().indexOf('system_server') === -1) {
logger.trace(__('Package manager not started yet, trying again in %sms...', retryInterval));
intervalTimer = setTimeout(installApp, retryInterval);
return;
Expand Down

0 comments on commit d637c86

Please sign in to comment.