changed ping time to 5 seconds

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

No files matched your search

@@ -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;
@@ -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;