diff options
author | Michael Bridgen <mikeb@lshift.net> | 2009-10-20 15:37:32 +0100 |
---|---|---|
committer | Michael Bridgen <mikeb@lshift.net> | 2009-10-20 15:37:32 +0100 |
commit | d8855e4c12c6dd070be8028244fd67c0e8fae95b (patch) | |
tree | 98ac38fe3e7bb0691c1aeb91918d52b3499238a0 | |
parent | ce031fb9cb080cf2bdc04d16ad97f00d55846b37 (diff) | |
download | rabbitmq-server-bug21758.tar.gz |
Typo and style fixbug21758
-rw-r--r-- | src/rabbit_amqqueue_process.erl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 02614fba..c78edcfa 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) -> |