summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-09-30 15:12:08 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-09-30 15:12:08 +0100
commit8c5314a3c98aca3bb6d0f61ac2eb85b0bf072008 (patch)
treeb3a02b782879d752677040a76fd816f661a4ee5f
parentc5cbc173bac6c24ec5c386ea742bd40e9d539993 (diff)
downloadrabbitmq-server-8c5314a3c98aca3bb6d0f61ac2eb85b0bf072008.tar.gz
Don't forget the limiter even if we have no consumers.
-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 bde11f00..f10a50c2 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;