Do not reopen files back and forth, less bugs
This commit is contained in:
parent
28f65ef087
commit
dad127e0ea
4 changed files with 1 additions and 67 deletions
|
|
@ -156,9 +156,6 @@ impl ChunkTracker {
|
|||
&self.have
|
||||
}
|
||||
|
||||
pub fn get_selected_pieces(&self) -> &BF {
|
||||
&self.selected
|
||||
}
|
||||
pub fn reserve_needed_piece(&mut self, index: ValidPieceIndex) {
|
||||
self.queue_pieces.set(index.get() as usize, false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue