Commit 8ef7056b authored by Jim Fulton's avatar Jim Fulton

Make sure the minimum reconnect timeout is less than the max.

parent f7531066
......@@ -34,7 +34,7 @@ class ConnectionManager(object):
def __init__(self, addrs, client, tmin=1, tmax=180):
self.addrlist = self._parse_addrs(addrs)
self.client = client
self.tmin = tmin
self.tmin = min(tmin, tmax)
self.tmax = tmax
self.cond = threading.Condition(threading.Lock())
self.connection = None # Protected by self.cond
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment