added extra assert to piece picker
This commit is contained in:
parent
b9cdfc2771
commit
f942308ccb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue