mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Correct silly mistake
This commit is contained in:
parent
7a46360a13
commit
e7de99dd0e
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ class TCPReqServerChannel(salt.transport.mixins.auth.AESReqServerMixin, salt.tra
|
|||
try:
|
||||
self._socket.shutdown(socket.SHUT_RDWR)
|
||||
except socket.error as exc:
|
||||
if socket.errno.ENOTCONN == 107:
|
||||
if exc.errno == 107:
|
||||
# We may try to shutdown a socket which is already disconnected.
|
||||
# Ignore this condition and continue.
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue