fixed incorrect assert in bytes_done()

This commit is contained in:
Arvid Norberg
2006-12-31 14:48:18 +00:00
parent 0fc8c2efa3
commit 45864b15ec
4 changed files with 35 additions and 25 deletions

View File

@@ -136,6 +136,12 @@ namespace libtorrent
if (i->finished_blocks[j])
mark_as_finished(piece_block(i->index, j), peer);
}
if (is_piece_finished(i->index))
{
// TODO: handle this case by verifying the
// piece and either accept it or discard it
assert(false);
}
}
}
}