policy iterator fix
This commit is contained in:
parent
5b7cf047b7
commit
8995edead0
|
@ -338,8 +338,7 @@ namespace libtorrent
|
||||||
piece_picker* p = 0;
|
piece_picker* p = 0;
|
||||||
if (m_torrent->has_picker())
|
if (m_torrent->has_picker())
|
||||||
p = &m_torrent->picker();
|
p = &m_torrent->picker();
|
||||||
for (iterator i = m_peers.begin()
|
for (iterator i = m_peers.begin(); i != m_peers.end();)
|
||||||
, end(m_peers.end()); i != end;)
|
|
||||||
{
|
{
|
||||||
if ((ses.m_ip_filter.access(i->second.addr) & ip_filter::blocked) == 0)
|
if ((ses.m_ip_filter.access(i->second.addr) & ip_filter::blocked) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue