mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added logging line to scheduleReconnect
This commit is contained in:
parent
a30ee6cd0b
commit
e88a5a3ae0
@ -76,12 +76,15 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
||||
|
||||
def scheduleReconnect(self):
|
||||
if self.reconnect:
|
||||
when = time.time() + 60
|
||||
whenS = time.strftime(conf.timestampFormat, time.localtime(when))
|
||||
debug.debugMsg('Scheduling reconnect at %s' % whenS, 'normal')
|
||||
def makeNewDriver():
|
||||
self.irc.reset()
|
||||
driver = self.__class__(self.server, reconnect=self.reconnect)
|
||||
driver.irc = self.irc
|
||||
driver.irc.driver = driver
|
||||
schedule.addEvent(makeNewDriver, time.time() + 60)
|
||||
schedule.addEvent(makeNewDriver, when)
|
||||
|
||||
def writable(self):
|
||||
#debug.methodNamePrintf(self, 'writable')
|
||||
|
Loading…
Reference in New Issue
Block a user