summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-02-10 16:17:00 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-02-10 16:17:00 +0000
commit20bfae49c046cc3978a46b2de9faabe6241ce97f (patch)
treec84f7ad00d64144cbcdc40f744f8a858fead2b65 /src
parent090521e9a8b01c1286d3ba15f045f627f9845d84 (diff)
downloadrabbitmq-server-git-20bfae49c046cc3978a46b2de9faabe6241ce97f.tar.gz
Ignore methods to the channel if we're closing
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index d0a1e1f7a2..1903ff429b 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -529,6 +529,9 @@ handle_method(#'channel.open'{}, _, _State) ->
handle_method(_Method, _, #ch{state = starting}) ->
rabbit_misc:protocol_error(channel_error, "expected 'channel.open'", []);
+handle_method(_Method, _, State = #ch{state = closing}) ->
+ {noreply, State};
+
handle_method(#'channel.close'{}, _, State = #ch{reader_pid = ReaderPid,
channel = Channel}) ->
Self = self(),