Skip to content
Snippets Groups Projects
Commit c8222227 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

1.2.4

parent 61693df5
No related branches found
No related tags found
No related merge requests found
# v1.2.4
* _TBA_
* bugfix release
# v1.2.3
......
__version__ = '1.2.4_a1'
__version__ = '1.2.4'
......@@ -406,9 +406,11 @@ class Consumer(Channeler):
if self.queue.anonymous:
self.queue.name = payload.queue.tobytes()
queue_declared = False
# We need any form of binding.
if self.queue.exchange is not None:
if self.queue.exchange.type != b'topic':
queue_declared = True
self.method_and_watch(
QueueBind(
self.queue.name,
......@@ -417,7 +419,8 @@ class Consumer(Channeler):
QueueBindOk,
self.on_setup
)
else:
if not queue_declared:
# default exchange, pretend it was bind ok
self.on_setup(QueueBindOk())
elif isinstance(payload, QueueBindOk):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment