fixed bug when allow_multiple_connections_per_ip was enabled

This commit is contained in:
Arvid Norberg 2010-11-26 20:48:04 +00:00
parent d1cb2d52ff
commit 4f24fe1e62
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fixed bug when allow_multiple_connections_per_ip was enabled
* potential WOW64 fix for unbuffered I/O (windows)
* expose set_alert_queue_size_limit to python binding
* support dht nodes in magnet links

View File

@ -889,7 +889,7 @@ namespace libtorrent
std::pair<iterator, iterator> range = find_peers(remote.address());
iterator i = std::find_if(range.first, range.second
, match_peer_endpoint(remote));
if (i != m_peers.end())
if (i != range.second)
{
policy::peer& pp = **i;
if (pp.connection)