summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-12-17 16:52:10 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2010-12-17 16:52:10 +0000
commit161623fc474f27ea2eb46bc25cfcef7f49865497 (patch)
tree39ec3ecae39ac3c61bc3bd4c077958a01dc2c760
parenta3ffc09c00caee590a1249c4bb809d2af8cc818d (diff)
downloadrabbitmq-server-161623fc474f27ea2eb46bc25cfcef7f49865497.tar.gz
fix bug in consumer_delete event emission on queue termination
This caused rabbit_mgmt_db to explode as it attemps to format a consumer tag as a pid.
-rw-r--r--src/rabbit_amqqueue_process.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 523f7c5e..981dd31d 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -200,7 +200,7 @@ terminate_shutdown(Fun, State) ->
BQSN1
end, BQS, all_ch_record()),
[emit_consumer_deleted(Ch, CTag)
- || {CTag, Ch, _} <- consumers(State1)],
+ || {Ch, CTag, _} <- consumers(State1)],
rabbit_event:notify(queue_deleted, [{pid, self()}]),
State1#q{backing_queue_state = Fun(BQS1)}
end.