Fix a bug with wrong number of queued peers
This commit is contained in:
parent
b891cd40dd
commit
b40d33b0ad
1 changed files with 2 additions and 0 deletions
|
|
@ -667,6 +667,8 @@ impl TorrentState {
|
|||
}
|
||||
}
|
||||
PeerState::NotNeeded => {
|
||||
// Restore it as std::mem::take() replaced it above.
|
||||
pe.value_mut().state = PeerState::NotNeeded;
|
||||
return;
|
||||
}
|
||||
s @ PeerState::Queued | s @ PeerState::Dead => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue