Skip to content

Commit 5c538d3

Browse files
committed
[amqp-bunny] In case of zero timeout we should pass null to bunny lib.
1 parent a071bcb commit 5c538d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/amqp-bunny/AmqpContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public function consume($timeout = 0)
388388
throw new \LogicException('There is no subscribers. Consider calling basicConsumeSubscribe before consuming');
389389
}
390390

391-
$this->getBunnyChannel()->getClient()->run($timeout / 1000);
391+
$this->getBunnyChannel()->getClient()->run(0 !== $timeout ? $timeout / 1000 : null);
392392
}
393393

394394
/**

0 commit comments

Comments
 (0)