timed existence for lock time debugging

This commit is contained in:
Igor Katson 2023-11-19 19:42:19 +00:00
parent ff71ade190
commit 2ad288199d
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -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;