Commits

Jason R. Coombs  committed 8fb9b0b

Fix socket.shutdown usage

  • Participants
  • Parent commits acd5882
  • Tags 2.0.2

Comments (0)

Files changed (2)

+2.0.2
+=====
+
+* Fix socket.shutdown usage.
+
 2.0.1
 =====
 

File irc/client.py

         self.quit(message)
 
         try:
-            self.socket.shutdown()
+            self.socket.shutdown(socket.SHUT_WR)
             self.socket.close()
         except socket.error:
             pass
 
         self.connected = 0
         try:
-            self.socket.shutdown()
+            self.socket.shutdown(socket.SHUT_WR)
             self.socket.close()
         except socket.error:
             pass