8000 Merge pull request #771 from snapshotpl/bunny-signal · enumag/enqueue-dev@499360e · GitHub
[go: up one dir, main page]

Skip to content

Commit 499360e

Browse files
authored
Merge pull request php-enqueue#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

pkg/amqp-bunny/AmqpSubscriptionConsumer.php

Lines changed: 1 addition & 1 deletion
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)
0