# HG changeset patch # User Charly COSTE # Date 1264003200 -3600 # Node ID f4997d50e93b23dfaf7879e2b882b22383eadf93 # Parent 0fc24e232997ce182748de85d5497aaac5c63bda fixed an infinite loop and an indentation error in irclib Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- a/irclib.py +++ b/irclib.py @@ -757,10 +757,11 @@ class ServerConnection(Connection): if self.connected: self.connected = False if self.really_connected: - self.really_connected = False + self.really_connected = False if self.socket and self.socket != 'closed': - self.quit(message) + if message and message != 'Connection reset by peer': + self.quit(message) try: self.socket.close()