diff options
-rw-r--r-- | src/rabbit_amqqueue_process.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index c28524b1..e62aad69 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -543,7 +543,8 @@ remove_consumer(ChPid, ConsumerTag, Queue) -> remove_consumers(ChPid, Queue) -> {Kept, Removed} = split_by_channel(ChPid, Queue), - [emit_consumer_deleted(CTag, Ch) || {Ch, #consumer{tag = CTag}} <- Removed], + [emit_consumer_deleted(CTag, Ch) + || {Ch, #consumer{tag = CTag}} <- queue:to_list(Removed)], Kept. move_consumers(ChPid, From, To) -> |