diff options
author | Leif Johansson <leifj@sunet.se> | 2012-02-09 22:19:39 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-02-09 22:19:39 +0100 |
commit | 2b096fa2dd3d0c3f36ba94ead4a0b854c8e831a6 (patch) | |
tree | ca1865b894a2bde9976a5fc9ca9e6a56290e60ec /src/meetingtools/ac/api.py | |
parent | 823762d8285fe8f7c847d9a0e5a161c38d0a46ea (diff) |
don't return broken objects to pool
Diffstat (limited to 'src/meetingtools/ac/api.py')
-rw-r--r-- | src/meetingtools/ac/api.py | 2 |
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): |