mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 10:42:55 +01:00
Fixed the socketDrivers problem (THANKS G-LITE{EXCLAIMEXCLAIMEXCLAIM})
This commit is contained in:
parent
1541f051fd
commit
edc6ea83f2
@ -151,8 +151,9 @@ class SocketDriver(drivers.IrcDriver):
|
|||||||
if e.args[0] == 115:
|
if e.args[0] == 115:
|
||||||
now = time.time()
|
now = time.time()
|
||||||
when = now + 60
|
when = now + 60
|
||||||
|
whenS = log.timestamp(when)
|
||||||
log.info('Connection in progress, scheduling connectedness '
|
log.info('Connection in progress, scheduling connectedness '
|
||||||
'check for %s', when)
|
'check for %s', whenS)
|
||||||
schedule.addEvent(self._checkAndWriteOrReconnect, when)
|
schedule.addEvent(self._checkAndWriteOrReconnect, when)
|
||||||
else:
|
else:
|
||||||
log.warning('Error connecting to %s: %s', self.server[0], e)
|
log.warning('Error connecting to %s: %s', self.server[0], e)
|
||||||
@ -173,9 +174,9 @@ class SocketDriver(drivers.IrcDriver):
|
|||||||
|
|
||||||
def _scheduleReconnect(self):
|
def _scheduleReconnect(self):
|
||||||
when = time.time() + self.reconnectWaits[self.reconnectWaitsIndex]
|
when = time.time() + self.reconnectWaits[self.reconnectWaitsIndex]
|
||||||
when = log.timestamp(when)
|
whenS = log.timestamp(when)
|
||||||
if not world.dying:
|
if not world.dying:
|
||||||
log.info('Scheduling reconnect to %s at %s', self.server, when)
|
log.info('Scheduling reconnect to %s at %s', self.server, whenS)
|
||||||
schedule.addEvent(self.reconnect, when)
|
schedule.addEvent(self.reconnect, when)
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user