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