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

improved declaration handling

parent 94485f28
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ class Operation(object):
self.obj) # todo access not threadsafe
self.declarer.on_discard(self.obj)
else:
if isinstance(payload, QueueDeclareOk) and not self.obj.name:
if isinstance(payload, QueueDeclareOk) and self.obj.anonymous:
self.obj.name = payload.queue
self.obj.anonymous = False
......
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