Increased count of pings

This commit is contained in:
ChronosX88 2019-03-29 19:05:27 +04:00
parent 71f09b9571
commit 21a50bba5a

View File

@ -20,11 +20,10 @@ public class P2PUtils {
public static boolean ping(PeerAddress recipientPeerAddress) {
// For connection opening
for (int i = 0; i < 2; i++) {
for (int i = 0; i < 5; i++) {
peerDHT
.peer()
.ping()
.tcpPing(true)
.peerAddress(recipientPeerAddress)
.start()
.awaitUninterruptibly();
@ -33,7 +32,6 @@ public class P2PUtils {
FuturePing ping = peerDHT
.peer()
.ping()
.tcpPing(true)
.peerAddress(recipientPeerAddress)
.start()
.awaitUninterruptibly();