summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index df56ee49ad..b9d1baf060 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -556,10 +556,8 @@ handle_method(_Method, _, State = #ch{state = closing}) ->
{noreply, State};
handle_method(#'channel.close'{}, _, State = #ch{reader_pid = ReaderPid}) ->
- ReaderPid ! {channel_closing, self()},
- %% no error, so rollback_and_notify should be 'ok'. Do in parallel
- %% with the reader picking up our message and casting back to us.
{ok, State1} = rollback_and_notify(State),
+ ReaderPid ! {channel_closing, self()},
{noreply, State1};
handle_method(#'access.request'{},_, State) ->