fixed bug when allow_multiple_connections_per_ip was enabled
This commit is contained in:
parent
d1cb2d52ff
commit
4f24fe1e62
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue