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: {}",
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user