From f4babc6f285eba7f49e538815512d15c355c6af4 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 7 May 2017 13:46:06 -0700 Subject: [PATCH] Irc: only disconnect the write portion of the socket Per https://docs.python.org/3/howto/sockets.html#disconnecting --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index aece160..28f2e40 100644 --- a/classes.py +++ b/classes.py @@ -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