Skip to content

Commit

Permalink
Merge pull request #771 from snapshotpl/bunny-signal
Browse files Browse the repository at this point in the history
Catch signal in Bunny adapter
  • Loading branch information
makasim committed Feb 21, 2019
2 parents b38e40a + 62cb949 commit 499360e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/amqp-bunny/AmqpSubscriptionConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function consume(int $timeout = 0): void
try {
$this->context->getBunnyChannel()->getClient()->run(0 !== $timeout ? $timeout / 1000 : null);
} catch (ClientException $e) {
if ('stream_select() failed.' == $e->getMessage() && $signalHandler->wasThereSignal()) {
if (0 === strpos($e->getMessage(), 'stream_select() failed') && $signalHandler->wasThereSignal()) {
return;
}

Expand Down

0 comments on commit 499360e

Please sign in to comment.