added extra assert to piece picker

This commit is contained in:
Arvid Norberg 2007-05-03 21:28:31 +00:00
parent b9cdfc2771
commit f942308ccb
1 changed files with 5 additions and 1 deletions

View File

@ -212,7 +212,11 @@ namespace libtorrent
int num_blocks = blocks_in_piece(i->index);
for (int k = 0; k < num_blocks; ++k)
{
if (i->finished_blocks[k]) continue;
if (i->finished_blocks[k])
{
assert(i->requested_blocks[k]);
continue;
}
if (i->requested_blocks[k])
{
blocks_requested = true;