forked from premiere/premiere-libtorrent
fixed another policy bug
This commit is contained in:
parent
fd180c4294
commit
5c3a73ccb9
|
@ -971,8 +971,7 @@ namespace libtorrent
|
||||||
assert(c.remote() == c.get_socket()->remote_endpoint());
|
assert(c.remote() == c.get_socket()->remote_endpoint());
|
||||||
|
|
||||||
peer p(c.remote(), peer::not_connectable, 0);
|
peer p(c.remote(), peer::not_connectable, 0);
|
||||||
m_peers.insert(std::make_pair(c.remote().address(), p));
|
i = m_peers.insert(std::make_pair(c.remote().address(), p));
|
||||||
i = boost::prior(m_peers.end());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(m_torrent->connection_for(c.remote()) == &c);
|
assert(m_torrent->connection_for(c.remote()) == &c);
|
||||||
|
|
Loading…
Reference in New Issue