mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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)
|
log.warning('Error connecting to %s: %s', self.server[0], e)
|
||||||
self.reconnect(wait=True)
|
self.reconnect(wait=True)
|
||||||
|
|
||||||
def _scheduleReconnect(self):
|
def _scheduleReconnect(self, at=60):
|
||||||
when = time.time() + 60
|
when = time.time() + at
|
||||||
if not world.dying:
|
if not world.dying:
|
||||||
whenS = log.timestamp(when)
|
whenS = log.timestamp(when)
|
||||||
log.info('Scheduling reconnect to %s at %s', self.server[0], whenS)
|
log.info('Scheduling reconnect to %s at %s', self.server[0], whenS)
|
||||||
|
Loading…
Reference in New Issue
Block a user