forked from Qortal/qortal
re-introduce pingRemote during pruning
This commit is contained in:
parent
1d9347ed23
commit
c79a830f2e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user