From 2e09e6b9badcb2adafc5e3d8cef6c1b5f0169399 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 17 Jun 2008 01:48:20 +0000 Subject: [PATCH] min reconnect time fix --- libtorrent/src/policy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/policy.cpp b/libtorrent/src/policy.cpp index 1b6a60cba..325007098 100755 --- a/libtorrent/src/policy.cpp +++ b/libtorrent/src/policy.cpp @@ -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;