mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
- Prevent a duplicate INFO log message.
- Forgot a return there, which would cause it to send messages on a disconnected driver.
This commit is contained in:
parent
1feffe91ac
commit
ff3c996deb
@ -131,7 +131,7 @@ class SocketDriver(drivers.IrcDriver):
|
|||||||
if self.connected:
|
if self.connected:
|
||||||
log.info('Reconnect called on driver for %s.' % self.irc)
|
log.info('Reconnect called on driver for %s.' % self.irc)
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
else:
|
elif not wait:
|
||||||
log.info('Connecting to %s.' % ':'.join(map(str, self.server)))
|
log.info('Connecting to %s.' % ':'.join(map(str, self.server)))
|
||||||
self.connected = False
|
self.connected = False
|
||||||
if wait:
|
if wait:
|
||||||
@ -158,6 +158,7 @@ class SocketDriver(drivers.IrcDriver):
|
|||||||
else:
|
else:
|
||||||
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)
|
||||||
|
return
|
||||||
self.connected = True
|
self.connected = True
|
||||||
self.reconnectWaitPeriodsIndex = 0
|
self.reconnectWaitPeriodsIndex = 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user