mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28302 from DSRCompany/issues/21744_fix_context_term
Always close socket even if there is no stream.
This commit is contained in:
commit
044737ba6e
1 changed files with 2 additions and 0 deletions
|
@ -312,6 +312,8 @@ class AsyncZeroMQPubChannel(salt.transport.mixins.auth.AESPubClientMixin, salt.t
|
|||
# TODO: Optionally call stream.close() on newer pyzmq? Its broken on some
|
||||
self._stream.io_loop.remove_handler(self._stream.socket)
|
||||
self._stream.socket.close(0)
|
||||
elif hasattr(self, '_socket'):
|
||||
self._socket.close(0)
|
||||
if hasattr(self, 'context'):
|
||||
self.context.term()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue