summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-01-08 10:47:21 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-01-08 10:47:21 +0000
commitc8ab5ed6172aa977b3ebacf3c799076d9388bf16 (patch)
treebbf5607722b0cd69aa553b9d2cdb9bd80f38fb86
parentee33f7ce556fa1bb47daa8aee9974d5c94937791 (diff)
parent188c4ddd5ee8d4fb10282772964155ba3434fd10 (diff)
downloadrabbitmq-server-c8ab5ed6172aa977b3ebacf3c799076d9388bf16.tar.gz
Merge bug25936
-rw-r--r--src/rabbit_amqqueue_process.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 6c8b4bcd..96851882 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -704,7 +704,9 @@ remove_consumers(ChPid, Queue, QName) ->
channel_consumers(ChPid, Queue) ->
priority_queue:fold(
fun ({CP, #consumer{tag = CTag}}, _, Acc) when CP =:= ChPid ->
- [CTag | Acc]
+ [CTag | Acc];
+ (_, _, Acc) ->
+ Acc
end, [], Queue).
possibly_unblock(State, ChPid, Update) ->