summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-01-18 14:46:40 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-01-18 14:46:40 +0000
commit5b37ae6d3257e9c292e8feeaf8198010cf8fc07f (patch)
tree75d54c73dac1c7c6a7a3abaa35ee788274eb0b93
parent3af21f0259e53896e3b9572bc7084466540e8c30 (diff)
downloadrabbitmq-server-git-5b37ae6d3257e9c292e8feeaf8198010cf8fc07f.tar.gz
For direct client we *do* want the reader pid (amqp_channel) rather than the conn_pid (amqp_direct_connection) here.
-rw-r--r--src/rabbit_channel.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 0f6d251735..603091b1e0 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -250,9 +250,10 @@ handle_call(refresh_config, _From, State = #ch{virtual_host = VHost}) ->
handle_call(_Request, _From, State) ->
noreply(State).
-handle_cast({method, Method, Content, Flow}, State = #ch{conn_pid = Conn}) ->
+handle_cast({method, Method, Content, Flow},
+ State = #ch{reader_pid = Reader}) ->
case Flow of
- flow -> credit_flow:ack(Conn);
+ flow -> credit_flow:ack(Reader);
noflow -> ok
end,
try handle_method(Method, Content, State) of