This commit is contained in:
Arvid Norberg 2012-02-09 06:56:16 +00:00
parent 679abf2e57
commit 98b3e6eb74
1 changed files with 4 additions and 5 deletions

View File

@ -839,11 +839,10 @@ namespace libtorrent
for (int i = 0; i < (int)m_have_piece.size(); ++i)
{
if (m_have_piece[i])
{
if (!t->have_piece(i) && t->picker().piece_priority(i) != 0)
interesting = true;
}
if (!m_have_piece[i]) continue;
if (t->have_piece(i) || t->picker().piece_priority(i) == 0) continue;
interesting = true;
break;
}
}