fixed inverted peer connect rank. Used to connect to the least likely to work peer, instead of the most likely

This commit is contained in:
Arvid Norberg 2009-05-06 22:31:17 +00:00
parent 60f299c8a8
commit ea91a6e077
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ release 0.14.4
* connect candidate calculation fix
* tightened up disk cache memory usage
* fixed magnet link parser to accept hex-encoded info-hashes
* fixed inverted logic when picking which peers to connect to
(should mean a slight performance improvement)
release 0.14.3

View File

@ -472,7 +472,7 @@ namespace libtorrent
if (!is_connect_candidate(pe, m_finished)) continue;
if (candidate != m_peers.end()
&& !compare_peer(*candidate, pe, external_ip)) continue;
&& compare_peer(*candidate, pe, external_ip)) continue;
if (pe.last_connected
&& session_time - pe.last_connected <