summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index bde11f00e0..f10a50c26c 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -884,7 +884,8 @@ handle_method(#'channel.flow'{active = false}, _,
Queues = [{QPid, erlang:monitor(process, QPid)} || QPid <- QPids],
ok = rabbit_amqqueue:flush_all(QPids, self()),
case Queues of
- [] -> {reply, #'channel.flow_ok'{active = false}, State};
+ [] -> {reply, #'channel.flow_ok'{active = false},
+ State#ch{limiter_pid = LimiterPid1}};
_ -> {noreply, State#ch{limiter_pid = LimiterPid1,
blocking = dict:from_list(Queues)}}
end;