mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Finally fixed looping bug. Really. I mean it this time. I fixed it. It's gone.
This commit is contained in:
parent
f1ee8b1bbd
commit
d7fce630d5
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user