|
@@ -39,7 +39,7 @@ public class MyWebSocket extends WebSocketClient {
|
|
Log.e("dds_error", "onClose:" + reason + "remote:" + remote);
|
|
Log.e("dds_error", "onClose:" + reason + "remote:" + remote);
|
|
if (connectFlag) {
|
|
if (connectFlag) {
|
|
try {
|
|
try {
|
|
- Thread.sleep(3000);
|
|
|
|
|
|
+ Thread.sleep(1500);
|
|
} catch (InterruptedException e) {
|
|
} catch (InterruptedException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
@@ -54,7 +54,7 @@ public class MyWebSocket extends WebSocketClient {
|
|
public void onError(Exception ex) {
|
|
public void onError(Exception ex) {
|
|
Log.e("dds_error", "onError:" + ex.toString());
|
|
Log.e("dds_error", "onError:" + ex.toString());
|
|
//this.iEvent.logout("onError");
|
|
//this.iEvent.logout("onError");
|
|
- //connectFlag = false;
|
|
|
|
|
|
+ connectFlag = false;
|
|
this.iEvent.onError();
|
|
this.iEvent.onError();
|
|
}
|
|
}
|
|
|
|
|