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());
peer p(c.remote(), peer::not_connectable, 0);
m_peers.insert(std::make_pair(c.remote().address(), p));
i = boost::prior(m_peers.end());
i = m_peers.insert(std::make_pair(c.remote().address(), p));
}
assert(m_torrent->connection_for(c.remote()) == &c);