Commits

Eric Raymond committed 894f086

Shutdown the connection before closing (it's good manners and signals the remote end that the connection was closed gracefully).

  • Participants
  • Parent commits 6676002

Comments (0)

Files changed (1)

File irc/client.py

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