Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
merge bug25632 into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
rade committed Jun 20, 2013
2 parents e68f8b9 + 5993ddc commit 4c096d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/amqp_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ do_rpc(State = #state{rpc_requests = Q,
{_, ok} -> gen_server:reply(From, ok);
_ -> ok
%% Do not reply if error in do. Expecting
%% {channel_exit, ...}
%% {channel_exit, _, _}
end,
do_rpc(State1#state{rpc_requests = NewQ})
end;
Expand Down
4 changes: 2 additions & 2 deletions src/amqp_network_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ do(Method, State) ->
do2(Method, State).

do2(Method, #state{writer0 = Writer}) ->
%% Catching because it expects the {channel_exit, _} message on error
%% Catching because it expects the {channel_exit, _, _} message on error
catch rabbit_writer:send_command_sync(Writer, Method).

handle_message(socket_closing_timeout,
Expand All @@ -65,7 +65,7 @@ handle_message(socket_closed, State = #state{waiting_socket_close = false}) ->
{stop, socket_closed_unexpectedly, State};
handle_message({socket_error, _} = SocketError, State) ->
{stop, SocketError, State};
handle_message({channel_exit, Reason}, State) ->
handle_message({channel_exit, 0, Reason}, State) ->
{stop, {channel0_died, Reason}, State};
handle_message(heartbeat_timeout, State) ->
{stop, heartbeat_timeout, State};
Expand Down

0 comments on commit 4c096d0

Please sign in to comment.