Skip to content

Commit 0307f0f

Browse files
committed
Merge branch 'master' into 2.1-merge
2 parents c3b83c7 + f350d74 commit 0307f0f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Hyperf\Utils\Coroutine;
1616
use Hyperf\Utils\Str;
1717
use Psr\EventDispatcher\EventDispatcherInterface;
18+
use Swoole\ExitException;
1819
use Symfony\Component\Console\Command\Command as SymfonyCommand;
1920
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
2021
use Symfony\Component\Console\Helper\Table;
@@ -435,6 +436,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
435436
$this->eventDispatcher && $this->eventDispatcher->dispatch(new Event\BeforeHandle($this));
436437
call([$this, 'handle']);
437438
$this->eventDispatcher && $this->eventDispatcher->dispatch(new Event\AfterHandle($this));
439+
} catch (ExitException $exception) {
440+
// Do nothing.
438441
} catch (\Throwable $exception) {
439442
if (! $this->eventDispatcher) {
440443
throw $exception;

0 commit comments

Comments
 (0)