Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Merge d356756 into 70b79e0
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsgh committed Feb 11, 2019
2 parents 70b79e0 + d356756 commit 49fadca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Command/RestartCommand.php
Expand Up @@ -67,12 +67,13 @@ public function execute(InputInterface $input, OutputInterface $output)
$input->getOption('type'),
$input->getOption('max-attempts')
);
}

if (0 === \count($messages)) {
$output->writeln('Nothing to restart, bye.');
// Check messages count only for not pulling mode to avoid warning message since ErroneousMessageIterator does not implement Countable.
if (0 === \count($messages)) {
$output->writeln('Nothing to restart, bye.');

return;
return;
}
}

$eventDispatcher = $this->getContainer()->get('event_dispatcher');
Expand Down

0 comments on commit 49fadca

Please sign in to comment.