policy iterator fix

This commit is contained in:
Arvid Norberg 2008-10-17 07:32:46 +00:00
parent 5b7cf047b7
commit 8995edead0
1 changed files with 1 additions and 2 deletions

View File

@ -338,8 +338,7 @@ namespace libtorrent
piece_picker* p = 0;
if (m_torrent->has_picker())
p = &m_torrent->picker();
for (iterator i = m_peers.begin()
, end(m_peers.end()); i != end;)
for (iterator i = m_peers.begin(); i != m_peers.end();)
{
if ((ses.m_ip_filter.access(i->second.addr) & ip_filter::blocked) == 0)
{