mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do not fail when cleaning up loop file handlers
This commit is contained in:
parent
117cd6861d
commit
1f145c0f6e
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ class SyncWrapper:
|
|||
log.exception("Exception encountered while running stop method")
|
||||
io_loop = self.io_loop
|
||||
io_loop.stop()
|
||||
io_loop.close(all_fds=True)
|
||||
try:
|
||||
io_loop.close(all_fds=True)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
def __getattr__(self, key):
|
||||
if key in self._async_methods:
|
||||
|
|
Loading…
Add table
Reference in a new issue