Skip to content

Commit 8f7b00b

Browse files
committed
reset replies for subsequent requests
1 parent 69463ca commit 8f7b00b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RabbitMq/RpcClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ public function getReplies()
4141

4242
$this->getChannel()->basic_cancel($this->queueName);
4343
$this->requests = 0;
44+
$replies = $this->replies;
45+
$this->replies = array();
4446

45-
return $this->replies;
47+
return $replies;
4648
}
4749

4850
public function processMessage(AMQPMessage $msg)

0 commit comments

Comments
 (0)