From 2b096fa2dd3d0c3f36ba94ead4a0b854c8e831a6 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 9 Feb 2012 22:19:39 +0100 Subject: don't return broken objects to pool --- src/meetingtools/ac/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index 1d790d0..67b8fca 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -81,7 +81,7 @@ class ACPClient(): self._cache = {'login':{},'group':{}} def __exit__(self,type,value,traceback): - if self._cpool and not type: + if self._cpool and not value: self._cpool._q.put_nowait(self) def __enter__(self): -- cgit v1.1