From 796f85014df072df5d5ac0f9210d499ea92e334f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 26 Aug 2012 22:22:14 -0400 Subject: [PATCH] Shut downn closed sockets - makes status detectabke at the other end. --- irclib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irclib.py b/irclib.py index caa5066..724355c 100644 --- a/irclib.py +++ b/irclib.py @@ -728,6 +728,7 @@ class ServerConnection(Connection): self.quit(message) try: + self.socket.shutdown() self.socket.close() except socket.error: pass @@ -1001,6 +1002,7 @@ class DCCConnection(Connection): self.connected = 0 try: + self.socket.shutdown() self.socket.close() except socket.error: pass -- 2.26.2