min reconnect time fix
This commit is contained in:
parent
a8b1d98c3d
commit
2e09e6b9ba
|
@ -550,7 +550,7 @@ namespace libtorrent
|
||||||
&& candidate->second.failcount < i->second.failcount)
|
&& candidate->second.failcount < i->second.failcount)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (now - i->second.connected < seconds(i->second.failcount * min_reconnect_time))
|
if (now - i->second.connected < seconds((i->second.failcount + 1) * min_reconnect_time))
|
||||||
continue;
|
continue;
|
||||||
if (ses.m_port_filter.access(i->second.ip.port()) & port_filter::blocked)
|
if (ses.m_port_filter.access(i->second.ip.port()) & port_filter::blocked)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue