3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

Revert "Irc: only disconnect the write portion of the socket"

This reverts commit f4babc6f28.
This commit is contained in:
James Lu 2017-05-12 17:19:16 -07:00
parent 1bd6149ee2
commit 06d49f4433

View File

@ -390,7 +390,7 @@ class Irc(utils.DeprecatedAttributesObject):
try:
log.debug('(%s) disconnect: Shutting down socket.', self.name)
self.socket.shutdown(socket.SHUT_WR)
self.socket.shutdown(socket.SHUT_RDWR)
except Exception as e: # Socket timed out during creation; ignore
log.debug('(%s) error on socket shutdown: %s: %s', self.name, type(e).__name__, e)