8000 Catch signal in Bunny adapter · enumag/enqueue-dev@38ed925 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38ed925

Browse files
committed
Catch signal in Bunny adapter
1 parent b38e40a commit 38ed925

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

0 commit comments

Comments
 (0)
0