Skip to content

Commit

Permalink
should remove process timer when a exception caused
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Mar 28, 2019
1 parent c0196d5 commit 797b701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public function run(bool $daemonize = false)
try {
$this->process($this->patrolPeriod);
} catch (\Throwable $e) {
$this->removeProcessTimer();
$this->shutdown($e);
}

Expand Down

0 comments on commit 797b701

Please sign in to comment.