mirror of
https://github.com/transmission/transmission
synced 2024-12-21 23:32:35 +00:00
fix: allow unreachable peers to be retried (#6975)
`tr_peer_info::reconnect_interval_has_passed()` contains logic to increase the reconnect interval for unreachable peers, but it has no effect at all currently because they wouldn't be tried in the first place.
This commit is contained in:
parent
49f4c604da
commit
5a881191d0
1 changed files with 0 additions and 6 deletions
|
@ -2427,12 +2427,6 @@ namespace connect_helpers
|
|||
/* is this atom someone that we'd want to initiate a connection to? */
|
||||
[[nodiscard]] bool is_peer_candidate(tr_torrent const* tor, tr_peer_info const& peer_info, time_t const now)
|
||||
{
|
||||
// have we already tried and failed to connect?
|
||||
if (auto const conn = peer_info.is_connectable(); conn && !*conn)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// not if we're both upload only and pex is disabled
|
||||
if (tor->is_done() && peer_info.is_upload_only() && !tor->allows_pex())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue