Skip to content

Commit 932be4e

Browse files
author
Matthew Sackman
committed
merge in bug20955
2 parents 979810d + 248c83d commit 932be4e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/rabbit_amqqueue_process.erl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,18 @@ handle_call({basic_consume, NoAck, ReaderPid, ChPid, LimiterPid,
644644
true -> ExistingHolder
645645
end,
646646
State1 = State#q{has_had_consumers = true,
647-
exclusive_consumer = ExclusiveConsumer,
648-
round_robin = queue:in({ChPid, Consumer},
649-
RoundRobin)},
647+
exclusive_consumer = ExclusiveConsumer},
650648
ok = maybe_send_reply(ChPid, OkMsg),
651-
reply(ok, run_poke_burst(State1))
649+
State2 =
650+
case is_ch_blocked(C) of
651+
true -> State1;
652+
false -> run_poke_burst(
653+
State1#q{
654+
round_robin = queue:in(
655+
{ChPid, Consumer},
656+
RoundRobin)})
657+
end,
658+
reply(ok, State2)
652659
end
653660
end;
654661

0 commit comments

Comments
 (0)