diff --git a/crates/librqbit/src/torrent_state.rs b/crates/librqbit/src/torrent_state.rs index a1dd065..ddb0f79 100644 --- a/crates/librqbit/src/torrent_state.rs +++ b/crates/librqbit/src/torrent_state.rs @@ -1287,11 +1287,11 @@ impl PeerHandler { ); { let mut g = self.state.lock_write("mark_piece_downloaded"); - g.chunks.mark_piece_downloaded(chunk_info.piece_index); - self.state.peers.reset_peer_backoff(handle); } + self.state.peers.reset_peer_backoff(handle); + debug!("piece={} successfully downloaded and verified", index); if self.state.is_finished() {