Patch in some changes from another branch

This commit is contained in:
Igor Katson 2024-04-29 17:26:02 +01:00
parent 9474a6d52e
commit 82f8b0932c
2 changed files with 93 additions and 80 deletions

View file

@ -707,7 +707,8 @@ impl TorrentStateLive {
}
}
self.streams.wake_streams_on_piece_completed(id);
self.streams
.wake_streams_on_piece_completed(id, &self.meta.lengths);
if self.is_finished() {
if self.lock_read("chunks").get_chunks()?.get_selected_pieces()[id.get_usize()] {