From d7fce630d594c1ef8d3c474386ae0b13e832647d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 12 Apr 2003 12:04:47 +0000 Subject: [PATCH] Finally fixed looping bug. Really. I mean it this time. I fixed it. It's gone. --- src/asyncoreDrivers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/asyncoreDrivers.py b/src/asyncoreDrivers.py index 6631ad66d..4c9741a2c 100644 --- a/src/asyncoreDrivers.py +++ b/src/asyncoreDrivers.py @@ -64,13 +64,14 @@ class AsyncoreDriver(asynchat.async_chat, object): self.server = (server, port) self.reconnect = reconnect self.irc = irc + self.irc.driver = self self.buffer = '' self.set_terminator('\n') self.create_socket(socket.AF_INET, socket.SOCK_STREAM) try: self.connect(self.server) except: - debug.recoverableException() + debug.recoverableException('terse') self.scheduleReconnect() self.close() @@ -124,6 +125,9 @@ class AsyncoreDriver(asynchat.async_chat, object): self.scheduleReconnect() self.die() + def handle_connect(self): + pass + def die(self): self.close()