This commit is contained in:
Igor Katson 2023-11-20 01:55:27 +00:00
parent a9794de37e
commit 1de690a74b
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -1086,7 +1086,7 @@ impl PeerHandler {
None => match self.state.reserve_next_needed_piece(handle) {
Some(next) => next,
None => {
if self.state.get_left_to_download() == 0 {
if self.state.is_finished() {
debug!("nothing left to download, closing requester");
return Ok(());
}