another attempt to fix to #133
This commit is contained in:
parent
b8e48c061e
commit
a91b4e9ec3
|
@ -1563,9 +1563,13 @@ namespace libtorrent
|
|||
assert(t);
|
||||
|
||||
for (std::vector<int>::iterator i = m_allowed_fast.begin();
|
||||
i != m_allowed_fast.end(); ++i)
|
||||
i != m_allowed_fast.end();)
|
||||
{
|
||||
if (!t->have_piece(*i)) continue;
|
||||
if (!t->have_piece(*i))
|
||||
{
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
*i = m_allowed_fast.back();
|
||||
m_allowed_fast.pop_back();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue