Handle exception on Ctrl-C
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
parent
27832d617e
commit
f94547743e
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user