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

Commit

Permalink
Nuked message handler that deals with a message that nobody actually …
Browse files Browse the repository at this point in the history
…sends and sends the peer back a message that it doesn't handle either
  • Loading branch information
0x6e6562 committed May 18, 2009
1 parent 02a5bdd commit 7747375
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/amqp_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,6 @@ handle_info({'EXIT', _Pid, Reason},
io:format("Channel ~p is shutting down due to: ~p~n",[Number, Reason]),
{stop, normal, State};

%% This is for a race condition between a close.close_ok and a subsequent
%% channel.open
handle_info( {channel_close, Peer}, State ) ->
NewState = channel_cleanup(State),
%% TODO Do we still need this??
Peer ! handshake,
{noreply, NewState};

%% This is for a channel exception that can't be otherwise handled
handle_info( {channel_exception, Channel, Reason}, State) ->
io:format("Channel ~p is shutting down due to: ~p~n",[Channel, Reason]),
Expand Down

0 comments on commit 7747375

Please sign in to comment.