mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Better object checking on asyncreq cleanup
This commit is contained in:
parent
e57f767244
commit
e213840f4b
@ -714,7 +714,7 @@ class AsyncReqMessageClient(object):
|
||||
|
||||
# TODO: timeout all in-flight sessions, or error
|
||||
def destroy(self):
|
||||
if hasattr(self, 'stream'):
|
||||
if hasattr(self, 'stream') and self.stream is not None:
|
||||
# TODO: Optionally call stream.close() on newer pyzmq? It is broken on some.
|
||||
self.stream.socket.close()
|
||||
self.stream.io_loop.remove_handler(self.stream.socket)
|
||||
|
Loading…
Reference in New Issue
Block a user