fixed another policy bug

This commit is contained in:
Arvid Norberg 2007-10-03 00:55:06 +00:00
parent fd180c4294
commit 5c3a73ccb9
1 changed files with 1 additions and 2 deletions

View File

@ -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);