Mercurial > xib
comparison irclib.py @ 167:f4997d50e93b
fixed an infinite loop and an indentation error in irclib
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 20 Jan 2010 17:00:00 +0100 |
parents | 0fc24e232997 |
children | 64a0e9636ae6 |
comparison
equal
deleted
inserted
replaced
166:0fc24e232997 | 167:f4997d50e93b |
---|---|
755 self.lock.acquire() | 755 self.lock.acquire() |
756 | 756 |
757 if self.connected: | 757 if self.connected: |
758 self.connected = False | 758 self.connected = False |
759 if self.really_connected: | 759 if self.really_connected: |
760 self.really_connected = False | 760 self.really_connected = False |
761 | 761 |
762 if self.socket and self.socket != 'closed': | 762 if self.socket and self.socket != 'closed': |
763 self.quit(message) | 763 if message and message != 'Connection reset by peer': |
764 self.quit(message) | |
764 | 765 |
765 try: | 766 try: |
766 self.socket.close() | 767 self.socket.close() |
767 except socket.error, x: | 768 except socket.error, x: |
768 pass | 769 pass |