Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed infinitely recursive calls when disconnecting with a failed con…
…nection. Bug reported by Erik Max Francis.
  • Loading branch information
keltus committed Aug 27, 2005
1 parent ef677bb commit a888ecc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2005-08-27 Keltus <keltus@users.sourceforge.net>
* irclib.py (ServerConnection.disconnect): Fixed infinitely
recursive calls when disconnecting with a failed connection. Bug
reported by Erik Max Francis.

2005-08-18 Keltus <keltus@users.sourceforge.net>
* irclib.py: Made ServerConnection.disconnect more consistant and
changed some functions to use it instead of quit. Previously,
Expand Down
5 changes: 3 additions & 2 deletions irclib.py
Expand Up @@ -16,7 +16,7 @@
#
# keltus <keltus@users.sourceforge.net>
#
# $Id: irclib.py,v 1.37 2005/08/18 20:11:22 keltus Exp $
# $Id: irclib.py,v 1.38 2005/08/27 21:03:58 keltus Exp $

"""irclib -- Internet Relay Chat (IRC) protocol client library.
Expand Down Expand Up @@ -649,9 +649,10 @@ def disconnect(self, message=""):
if not self.connected:
return

self.connected = 0

self.quit(message)

self.connected = 0
try:
self.socket.close()
except socket.error, x:
Expand Down

0 comments on commit a888ecc

Please sign in to comment.