Skip to content

Commit

Permalink
[amqp-bunny] In case of zero timeout we should pass null to bunny lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Nov 30, 2017
1 parent a071bcb commit 5c538d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/amqp-bunny/AmqpContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function consume($timeout = 0)
throw new \LogicException('There is no subscribers. Consider calling basicConsumeSubscribe before consuming');
}

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

/**
Expand Down

0 comments on commit 5c538d3

Please sign in to comment.