From 21a50bba5a994f6357b9e1ebec66c997484fb61d Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 29 Mar 2019 19:05:27 +0400 Subject: [PATCH] Increased count of pings --- .../java/io/github/chronosx88/influence/helpers/P2PUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/influence/helpers/P2PUtils.java b/app/src/main/java/io/github/chronosx88/influence/helpers/P2PUtils.java index dfb48d9..bd47dd1 100644 --- a/app/src/main/java/io/github/chronosx88/influence/helpers/P2PUtils.java +++ b/app/src/main/java/io/github/chronosx88/influence/helpers/P2PUtils.java @@ -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();