re-introduce pingRemote during pruning

This commit is contained in:
Jürg Schulthess 2024-07-10 21:27:41 +02:00
parent 1d9347ed23
commit c79a830f2e

View File

@ -487,6 +487,7 @@ public class RNSNetwork {
log.info("prunePeers - pLink: {}, destinationHash: {}", log.info("prunePeers - pLink: {}, destinationHash: {}",
pLink, Hex.encodeHexString(p.getDestinationHash())); pLink, Hex.encodeHexString(p.getDestinationHash()));
log.debug("peer: {}", p); log.debug("peer: {}", p);
p.pingRemote();
if (nonNull(pLink)) { if (nonNull(pLink)) {
if (p.getPeerTimedOut()) { if (p.getPeerTimedOut()) {
// close peer link for now // close peer link for now
@ -504,6 +505,8 @@ public class RNSNetwork {
p.shutdown(); p.shutdown();
peerList.remove(p); peerList.remove(p);
} }
} else {
peerList.remove(p);
} }
} }
//removeExpiredPeers(this.linkedPeers); //removeExpiredPeers(this.linkedPeers);