From 06d49f443307224b7c2f136dd80bfba834c29199 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 12 May 2017 17:19:16 -0700 Subject: [PATCH] Revert "Irc: only disconnect the write portion of the socket" This reverts commit f4babc6f285eba7f49e538815512d15c355c6af4. --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index 5ca3992..de68f82 100644 --- a/classes.py +++ b/classes.py @@ -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)