summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Bridgen <mikeb@lshift.net>2009-10-20 15:37:32 +0100
committerMichael Bridgen <mikeb@lshift.net>2009-10-20 15:37:32 +0100
commit3f4051835d88405b95d3e3f554dd73b391ea7d18 (patch)
tree98ac38fe3e7bb0691c1aeb91918d52b3499238a0 /src
parent761f1c51f163b44a81d2f9b8a65eeb7794e54aed (diff)
downloadrabbitmq-server-git-3f4051835d88405b95d3e3f554dd73b391ea7d18.tar.gz
Typo and style fix
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue_process.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 02614fbafa..c78edcfa33 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -581,12 +581,10 @@ handle_call({notify_down, ChPid}, _From, State) ->
%% are no longer visible by the time we send a response to the
%% client. The queue is ultimately deleted in terminate/2; if we
%% return stop with a reply, terminate/2 will be called by
- %% gen_server/2 *before* the reply is sent.
+ %% gen_server2 *before* the reply is sent.
case handle_ch_down(ChPid, State) of
- {ok, NewState} ->
- reply(ok, NewState);
- {stop, NewState2} ->
- {stop, normal, ok, NewState2}
+ {ok, NewState} -> reply(ok, NewState);
+ {stop, NewState} -> {stop, normal, ok, NewState}
end;
handle_call({basic_get, ChPid, NoAck}, _From,
@@ -822,8 +820,8 @@ handle_info({'DOWN', MonitorRef, process, DownPid, _Reason},
{stop, normal, NewState};
handle_info({'DOWN', _MonitorRef, process, DownPid, _Reason}, State) ->
case handle_ch_down(DownPid, State) of
- {ok, NewState} -> noreply(NewState);
- {stop, NewState2} -> {stop, normal, NewState2}
+ {ok, NewState} -> noreply(NewState);
+ {stop, NewState} -> {stop, normal, NewState}
end;
handle_info(Info, State) ->