Merge pull request #106 from ikatson/resilience-to-bogus-peers

Fix resilience to bogus peers
This commit is contained in:
Igor Katson 2024-03-29 20:46:37 +00:00 committed by GitHub
commit bb0f3c36ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 38 additions and 8 deletions

View file

@ -283,7 +283,7 @@ impl<'a> FileOps<'a> {
piece_remaining_bytes -= to_read_in_file;
if piece_remaining_bytes == 0 {
return Ok(true);
break;
}
absolute_offset = 0;