Remove an instance of double-locking in the same scope
This commit is contained in:
parent
2ebbc0a828
commit
d6cef0952c
1 changed files with 2 additions and 2 deletions
|
|
@ -1287,11 +1287,11 @@ impl PeerHandler {
|
|||
);
|
||||
{
|
||||
let mut g = self.state.lock_write("mark_piece_downloaded");
|
||||
|
||||
g.chunks.mark_piece_downloaded(chunk_info.piece_index);
|
||||
self.state.peers.reset_peer_backoff(handle);
|
||||
}
|
||||
|
||||
self.state.peers.reset_peer_backoff(handle);
|
||||
|
||||
debug!("piece={} successfully downloaded and verified", index);
|
||||
|
||||
if self.state.is_finished() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue