8000 CR fix · enumag/enqueue-dev@62cb949 · GitHub
[go: up one dir, main page]

Skip to content

Commit 62cb949

Browse files
committed
CR fix
1 parent 38ed925 commit 62cb949

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' === substr($e->getMessage(), 0, 22) && $signalHandler->wasThereSignal()) {
50+
if (0 === strpos($e->getMessage(), 'stream_select() failed') && $signalHandler->wasThereSignal()) {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)
0