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
Tags v1.2.4
No related merge requests found
# v1.2.4 # v1.2.4
* _TBA_ * bugfix release
# v1.2.3 # v1.2.3
......
__version__ = '1.2.4_a1' __version__ = '1.2.4'
...@@ -406,9 +406,11 @@ class Consumer(Channeler): ...@@ -406,9 +406,11 @@ class Consumer(Channeler):
if self.queue.anonymous: if self.queue.anonymous:
self.queue.name = payload.queue.tobytes() self.queue.name = payload.queue.tobytes()
queue_declared = False
# We need any form of binding. # We need any form of binding.
if self.queue.exchange is not None: if self.queue.exchange is not None:
if self.queue.exchange.type != b'topic': if self.queue.exchange.type != b'topic':
queue_declared = True
self.method_and_watch( self.method_and_watch(
QueueBind( QueueBind(
self.queue.name, self.queue.name,
...@@ -417,7 +419,8 @@ class Consumer(Channeler): ...@@ -417,7 +419,8 @@ class Consumer(Channeler):
QueueBindOk, QueueBindOk,
self.on_setup self.on_setup
) )
else:
if not queue_declared:
# default exchange, pretend it was bind ok # default exchange, pretend it was bind ok
self.on_setup(QueueBindOk()) self.on_setup(QueueBindOk())
elif isinstance(payload, 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