another attempt to fix to #133
This commit is contained in:
@@ -1563,9 +1563,13 @@ namespace libtorrent
|
|||||||
assert(t);
|
assert(t);
|
||||||
|
|
||||||
for (std::vector<int>::iterator i = m_allowed_fast.begin();
|
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();
|
*i = m_allowed_fast.back();
|
||||||
m_allowed_fast.pop_back();
|
m_allowed_fast.pop_back();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user