nothing
This commit is contained in:
parent
a9794de37e
commit
1de690a74b
1 changed files with 1 additions and 1 deletions
|
|
@ -1086,7 +1086,7 @@ impl PeerHandler {
|
||||||
None => match self.state.reserve_next_needed_piece(handle) {
|
None => match self.state.reserve_next_needed_piece(handle) {
|
||||||
Some(next) => next,
|
Some(next) => next,
|
||||||
None => {
|
None => {
|
||||||
if self.state.get_left_to_download() == 0 {
|
if self.state.is_finished() {
|
||||||
debug!("nothing left to download, closing requester");
|
debug!("nothing left to download, closing requester");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue