summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-02-09 22:19:39 +0100
committerLeif Johansson <leifj@sunet.se>2012-02-09 22:19:39 +0100
commit2b096fa2dd3d0c3f36ba94ead4a0b854c8e831a6 (patch)
treeca1865b894a2bde9976a5fc9ca9e6a56290e60ec /src
parent823762d8285fe8f7c847d9a0e5a161c38d0a46ea (diff)
don't return broken objects to pool
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/ac/api.py2
1 files changed, 1 insertions, 1 deletions
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):