mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-04 09:12:50 +01:00
Move our waitReconnectIndex increment to a place where it will actually get
called. If it also needs to be where I removed, someone re-add it.
This commit is contained in:
parent
3337d813cd
commit
63dc27905b
@ -142,13 +142,13 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
self.conn.bind((vhost, 0))
|
self.conn.bind((vhost, 0))
|
||||||
except socket.error, e:
|
except socket.error, e:
|
||||||
drivers.log.connectError(self.currentServer, e)
|
drivers.log.connectError(self.currentServer, e)
|
||||||
|
if self.reconnectWaitsIndex < len(self.reconnectWaits)-1:
|
||||||
|
self.reconnectWaitsIndex += 1
|
||||||
self.reconnect(wait=True)
|
self.reconnect(wait=True)
|
||||||
return
|
return
|
||||||
# We allow more time for the connect here, since it might take longer.
|
# We allow more time for the connect here, since it might take longer.
|
||||||
# At least 10 seconds.
|
# At least 10 seconds.
|
||||||
self.conn.settimeout(max(10, conf.supybot.drivers.poll()*10))
|
self.conn.settimeout(max(10, conf.supybot.drivers.poll()*10))
|
||||||
if self.reconnectWaitsIndex < len(self.reconnectWaits)-1:
|
|
||||||
self.reconnectWaitsIndex += 1
|
|
||||||
try:
|
try:
|
||||||
self.conn.connect(server)
|
self.conn.connect(server)
|
||||||
self.conn.settimeout(conf.supybot.drivers.poll())
|
self.conn.settimeout(conf.supybot.drivers.poll())
|
||||||
|
Loading…
Reference in New Issue
Block a user