summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEssien Ita Essien <essiene@gmail.com>2008-12-28 23:57:02 +0100
committerEssien Ita Essien <essiene@gmail.com>2008-12-28 23:57:02 +0100
commitcd054d71626519e587d6181309063742579fd19f (patch)
tree37286db905e71b6da2446b1dc3b9b19669c293ad /src
parent2955e19dfa2950d165e046ba3fea79ab4c3bd608 (diff)
parent69957f6f24f98fb0ad264599b47ca6c71ebb38b8 (diff)
downloadrabbitmq-server-git-cd054d71626519e587d6181309063742579fd19f.tar.gz
Merge with upstream
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 19104bcb90..ca2782c77d 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -111,16 +111,14 @@ init(ProxyPid, [ReaderPid, WriterPid, Username, VHost]) ->
consumer_mapping = dict:new()}.
handle_message({method, Method, Content}, State) ->
- try
- case handle_method(Method, Content, State) of
- {reply, Reply, NewState} ->
- ok = rabbit_writer:send_command(NewState#ch.writer_pid, Reply),
- NewState;
- {noreply, NewState} ->
- NewState;
- stop ->
- exit(normal)
- end
+ try handle_method(Method, Content, State) of
+ {reply, Reply, NewState} ->
+ ok = rabbit_writer:send_command(NewState#ch.writer_pid, Reply),
+ NewState;
+ {noreply, NewState} ->
+ NewState;
+ stop ->
+ exit(normal)
catch
exit:{amqp, Error, Explanation, none} ->
terminate({amqp, Error, Explanation,