From 8995edead0caae9d90bb3cbded3fe36ff89ed1a1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 17 Oct 2008 07:32:46 +0000 Subject: [PATCH] policy iterator fix --- src/policy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/policy.cpp b/src/policy.cpp index 0304fc6d9..db9861373 100644 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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) {