diff options
author | Leif Johansson <leifj@sunet.se> | 2012-02-09 09:41:05 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-02-09 09:41:05 +0100 |
commit | 36178e8b3b2686d30c900561a73a322a691f7f24 (patch) | |
tree | 9f740aa13beabe7e49d9b36bb1cae9ee58aaf8e2 /src | |
parent | ad21e8e4e5ac8f9eb38830f3024e19fd9329e288 (diff) |
don't return broken objects
Diffstat (limited to 'src')
-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 4d5559f..1d790d0 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: + if self._cpool and not type: self._cpool._q.put_nowait(self) def __enter__(self): |