From 45ab8699a646fc2b3861bf5a3e140181869d47c3 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 26 Jul 2013 07:41:09 +0100 Subject: [PATCH] Connection pool bugfix This is only seen if you try to call amqp.cleanup(). Change-Id: I5c14a21987b4b7aeca7dddc91d7c8b2510edefeb --- oslo/messaging/_drivers/amqp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo/messaging/_drivers/amqp.py b/oslo/messaging/_drivers/amqp.py index bc5f4952a..6b8ba6f48 100644 --- a/oslo/messaging/_drivers/amqp.py +++ b/oslo/messaging/_drivers/amqp.py @@ -72,7 +72,7 @@ class ConnectionPool(pool.Pool): return self.connection_cls(self.conf) def empty(self): - for item in self.iter_free: + for item in self.iter_free(): item.close() # Force a new connection pool to be created. # Note that this was added due to failing unit test cases. The issue