Handle exception on Ctrl-C

Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
root 2012-04-17 17:38:48 +02:00 committed by Zane Bitter
parent 27832d617e
commit f94547743e

View File

@ -60,7 +60,11 @@ class Pool(pools.Pool):
def empty(self):
while self.free_items:
self.get().close()
item = self.get()
try:
item.close()
except Exception:
pass
class ConnectionContext(rpc_common.Connection):