min reconnect time fix

This commit is contained in:
Marcos Pinto 2008-06-17 01:48:20 +00:00
parent a8b1d98c3d
commit 2e09e6b9ba
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ namespace libtorrent
&& candidate->second.failcount < i->second.failcount)
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;
if (ses.m_port_filter.access(i->second.ip.port()) & port_filter::blocked)
continue;