From: Eric S. Raymond Date: Mon, 27 Aug 2012 02:22:14 +0000 (-0400) Subject: Shut downn closed sockets - makes status detectabke at the other end. X-Git-Tag: 1.0~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=796f85014df072df5d5ac0f9210d499ea92e334f;p=irker.git Shut downn closed sockets - makes status detectabke at the other end. --- 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