Fix streaming logic
This commit is contained in:
parent
0a895c5b9c
commit
5ffe2d59b7
1 changed files with 1 additions and 1 deletions
|
|
@ -984,7 +984,7 @@ impl PeerHandler {
|
|||
.iter_next_pieces(&self.state.lengths)
|
||||
.filter(|pid| {
|
||||
!chunk_tracker.is_piece_have(*pid)
|
||||
&& chunk_tracker.is_piece_queued(*pid)
|
||||
&& !g.inflight_pieces.contains_key(pid)
|
||||
});
|
||||
let natural_order_pieces =
|
||||
chunk_tracker.iter_queued_pieces(&g.file_priorities, &self.state.files);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue