Added --exit-on-download option, only works without the server so far
This commit is contained in:
parent
af30affb37
commit
a800048b7e
4 changed files with 37 additions and 7 deletions
|
|
@ -127,7 +127,7 @@ impl ChunkTracker {
|
|||
}
|
||||
|
||||
pub fn mark_piece_downloaded(&mut self, idx: ValidPieceIndex) {
|
||||
self.have.set(idx.get() as usize, true)
|
||||
self.have.set(idx.get() as usize, true);
|
||||
}
|
||||
|
||||
pub fn is_chunk_downloaded(&self, chunk: &ChunkInfo) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue