Skip to content

Commit

Permalink
Revert "libtorrent: Mark invalid chunks for redownload"
Browse files Browse the repository at this point in the history
This reverts commit 19f8d48.
  • Loading branch information
stickz committed Sep 15, 2024
1 parent 19f8d48 commit cd9a245
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libtorrent/src/torrent/data/file_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,7 @@ FileList::create_chunk_index(uint32_t index, int prot) {
void
FileList::mark_completed(uint32_t index) {
if (index >= size_chunks() || completed_chunks() >= size_chunks())
{
LT_LOG_FL(ERROR, "FileList::mark_completed(...) received an invalid index: %s", data()->hash());
return;
}
throw internal_error("FileList::mark_completed(...) received an invalid index.", data()->hash());

if (bitfield()->empty())
throw internal_error("FileList::mark_completed(...) bitfield is empty.", data()->hash());
Expand Down

0 comments on commit cd9a245

Please sign in to comment.