summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_reader.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 7d68decf65..7ced87c122 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -330,7 +330,7 @@ handle_other({conserve_resources, Source, Conserve},
handle_other({channel_closing, ChPid}, State) ->
ok = rabbit_channel:ready_for_close(ChPid),
channel_cleanup(ChPid),
- maybe_close(control_throttle(State));
+ maybe_close(control_throttle(State#v1{channel_count = (ChannelCount - 1)}));
handle_other({'EXIT', Parent, Reason}, State = #v1{parent = Parent}) ->
terminate(io_lib:format("broker forced connection closure "
"with reason '~w'", [Reason]), State),