Skip to content

Commit 499360e

Browse files
authored
Merge pull request #771 from snapshotpl/bunny-signal
Catch signal in Bunny adapter
2 parents b38e40a + 62cb949 commit 499360e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/amqp-bunny/AmqpSubscriptionConsumer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function consume(int $timeout = 0): void
4747
try {
4848
$this->context->getBunnyChannel()->getClient()->run(0 !== $timeout ? $timeout / 1000 : null);
4949
} catch (ClientException $e) {
50-
if ('stream_select() failed.' == $e->getMessage() && $signalHandler->wasThereSignal()) {
50+
if (0 === strpos($e->getMessage(), 'stream_select() failed') && $signalHandler->wasThereSignal()) {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)