mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Refactored a touch.
This commit is contained in:
parent
f9c030fe46
commit
bb08574192
@ -77,8 +77,8 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
||||
log.warning('Error connecting to %s: %s', self.server[0], e)
|
||||
self.reconnect(wait=True)
|
||||
|
||||
def _scheduleReconnect(self):
|
||||
when = time.time() + 60
|
||||
def _scheduleReconnect(self, at=60):
|
||||
when = time.time() + at
|
||||
if not world.dying:
|
||||
whenS = log.timestamp(when)
|
||||
log.info('Scheduling reconnect to %s at %s', self.server[0], whenS)
|
||||
|
Loading…
Reference in New Issue
Block a user