From 747144279c380c10ca5444e96f7ea55e2bd65f3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 9 Jul 2020 18:54:54 +0200
Subject: [PATCH] v1.2.7

---
 coolamqp/attaches/declarer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coolamqp/attaches/declarer.py b/coolamqp/attaches/declarer.py
index 94289a3..e81d786 100644
--- a/coolamqp/attaches/declarer.py
+++ b/coolamqp/attaches/declarer.py
@@ -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 self.obj.anonymous:
+            if isinstance(payload, QueueDeclareOk) and not self.obj.name:
                 self.obj.name = payload.queue
 
             self.span_finished()
-- 
GitLab