changed ping time to 5 seconds

This commit is contained in:
Jonas 2022-03-27 17:14:29 +02:00
parent b344e59b23
commit 535edcc54c
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class ClientPinger implements Runnable {
out.write("CPING");
out.newLine();
out.flush();
Thread.sleep(2000);
Thread.sleep(5000);
if (gotPingBack) {
if (!isConnected) { //if !isConnected, then the connection had been lost before.
isConnected = true;

View File

@ -36,7 +36,7 @@ public class ServerPinger implements Runnable {
out.write("SPING");
out.newLine();
out.flush();
Thread.sleep(2000);
Thread.sleep(5000);
if (gotPingBack) {
if (!isConnected) { //if !isConnected, then the connection had been lost before.
isConnected = true;