Correct silly mistake

This commit is contained in:
Mike Place 2016-06-08 09:57:39 -06:00
parent 7a46360a13
commit e7de99dd0e

View file

@ -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