changed ping time to 5 seconds
This commit is contained in:
parent
b344e59b23
commit
535edcc54c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user