amqp: set the auto_delete bit on queues.
authorMatt Mullins <mmullins@mmlx.us>
Wed, 20 May 2015 04:31:25 +0000 (21:31 -0700)
committerMatt Mullins <mmullins@mmlx.us>
Wed, 20 May 2015 04:46:51 +0000 (21:46 -0700)
commit5cb7b62342c9876fba0e3ef7c62fe6673ca755c3
tree48b105d2a2a74e533938ade253842590dad06fa4
parent1d0ea0730bbca25209d1a69414063fea45ea6832
amqp: set the auto_delete bit on queues.

Without this, AMQP queues are leaked whenever we reconnect to an ircd.
Exclusive queues are only deleted when the connection is torn-down;
auto-deleted queues are also deleted when the last (i.e. only in this case)
conusmer is removed.

Since the AMQP consumers are tied to processes running under the irc_object_sup
for the IRC connection, these will be torn-down when we reconnect to the ircd.
amqp/amqp_bot_listener.erl