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.write("CPING");
|
||||||
out.newLine();
|
out.newLine();
|
||||||
out.flush();
|
out.flush();
|
||||||
Thread.sleep(2000);
|
Thread.sleep(5000);
|
||||||
if (gotPingBack) {
|
if (gotPingBack) {
|
||||||
if (!isConnected) { //if !isConnected, then the connection had been lost before.
|
if (!isConnected) { //if !isConnected, then the connection had been lost before.
|
||||||
isConnected = true;
|
isConnected = true;
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public class ServerPinger implements Runnable {
|
|||||||
out.write("SPING");
|
out.write("SPING");
|
||||||
out.newLine();
|
out.newLine();
|
||||||
out.flush();
|
out.flush();
|
||||||
Thread.sleep(2000);
|
Thread.sleep(5000);
|
||||||
if (gotPingBack) {
|
if (gotPingBack) {
|
||||||
if (!isConnected) { //if !isConnected, then the connection had been lost before.
|
if (!isConnected) { //if !isConnected, then the connection had been lost before.
|
||||||
isConnected = true;
|
isConnected = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user