another attempt to fix to #133

This commit is contained in:
Arvid Norberg 2007-08-21 06:38:27 +00:00
parent b8e48c061e
commit a91b4e9ec3
1 changed files with 6 additions and 2 deletions

View File

@ -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();
}