hopefully make fbye/fdie more smooth

This commit is contained in:
Jimmy Cao 2011-08-11 14:40:13 -05:00
parent a08bb9e60e
commit aad7bfa538

View File

@ -223,7 +223,6 @@ class IRCClient(object):
except Exception as e:
traceback.print_exc()
raise e # ?
yield True
finally:
if self.socket:
@ -255,5 +254,8 @@ class IRCClient(object):
def mainLoop(self):
conn = self.connect()
while True:
next(conn)
try:
next(conn)
except:
return