From a0e62d972ed89ad3a43838caf2f8c8dde438b151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 20 May 2020 17:51:01 +0200 Subject: [PATCH] fix utils --- 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 ebc579d..7eecc8e 100644 --- a/coolamqp/attaches/declarer.py +++ b/coolamqp/attaches/declarer.py @@ -85,7 +85,7 @@ class Operation(object): self.enqueued_span = None def span_finished(self): - if self.processing_span is None: + if self.processing_span is not None: self.processing_span.finish() self.processing_span = None -- GitLab