timed existence for lock time debugging
This commit is contained in:
parent
ff71ade190
commit
2ad288199d
1 changed files with 5 additions and 0 deletions
|
|
@ -654,6 +654,11 @@ impl TorrentState {
|
|||
}
|
||||
};
|
||||
|
||||
// If peer is already set not needed, ignore.
|
||||
if let PeerState::NotNeeded = pe.value().state {
|
||||
return;
|
||||
}
|
||||
|
||||
if error.is_none() {
|
||||
debug!("peer died without errors, not re-queueing");
|
||||
pe.value_mut().state = PeerState::NotNeeded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue