[6.11.0][adas] 关闭强制断开连接,连接异常时也正常发送CLOSE帧进行关闭
This commit is contained in:
@@ -118,7 +118,6 @@ public class FpgaSocket implements IWebSocket {
|
||||
|
||||
|
||||
public void setStatus(AdasConstants.IpcConnectionStatus s) {
|
||||
CupidLogUtils.log(TAG, "当前状态=" + s);
|
||||
status.set(s);
|
||||
}
|
||||
|
||||
@@ -344,7 +343,7 @@ public class FpgaSocket implements IWebSocket {
|
||||
//连接异常或关闭异常不进行堆栈打印
|
||||
if (!reason.toLowerCase().contains("failed to connect to") && !reason.contains("Socket closed"))
|
||||
Log.e("[tag=" + TAG + "]", "[data=WebSocket onFailure]", t);
|
||||
close(true, 1001);
|
||||
close(false, 1001);
|
||||
callConnectStatus(reason);
|
||||
reconnectStart();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user