mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39:23 +01:00
Let's make sure we wait long enough to connect.
This commit is contained in:
parent
48f2de64a4
commit
54cdfdba6a
@ -141,7 +141,8 @@ class SocketDriver(drivers.IrcDriver):
|
|||||||
self.irc.reset()
|
self.irc.reset()
|
||||||
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
# 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.
|
||||||
self.conn.settimeout(conf.supybot.drivers.poll()*10)
|
# At least 10 seconds.
|
||||||
|
self.conn.settimeout(map(10, conf.supybot.drivers.poll()*10))
|
||||||
if self.reconnectWaitsIndex < len(self.reconnectWaits)-1:
|
if self.reconnectWaitsIndex < len(self.reconnectWaits)-1:
|
||||||
self.reconnectWaitsIndex += 1
|
self.reconnectWaitsIndex += 1
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user