pidbox: Declare reply exchange when sending reply

This commit is contained in:
Ask Solem 2011-01-17 16:31:38 +01:00
parent dfa1b37fac
commit 12808079ba
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Mailbox(object):
durable=False,
auto_delete=True)
producer = Producer(chan, exchange=exchange,
auto_declare=False)
auto_declare=True)
producer.publish(reply, routing_key=routing_key)
finally:
channel or chan.close()