3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Irc: only disconnect the write portion of the socket

Per https://docs.python.org/3/howto/sockets.html#disconnecting
This commit is contained in:
James Lu 2017-05-07 13:46:06 -07:00
parent 59dd8d3bf8
commit f4babc6f28

View File

@ -385,7 +385,7 @@ class Irc(utils.DeprecatedAttributesObject):
try:
log.debug('(%s) disconnect: Shutting down socket.', self.name)
self.socket.shutdown(socket.SHUT_RDWR)
self.socket.shutdown(socket.SHUT_WR)
except: # Socket timed out during creation; ignore
pass