From 878049b939a839da6d713d43d435a2f6b93a410a Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 26 三月 2024 16:55:29 +0800 Subject: [PATCH] 添加中安身份证识别模块 把IP设置移动到参数设置界面 --- easysocket/src/main/java/com/easysocket/EasySocket.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/easysocket/src/main/java/com/easysocket/EasySocket.java b/easysocket/src/main/java/com/easysocket/EasySocket.java index 4aecbd3..eb8eee0 100644 --- a/easysocket/src/main/java/com/easysocket/EasySocket.java +++ b/easysocket/src/main/java/com/easysocket/EasySocket.java @@ -12,8 +12,6 @@ import com.easysocket.interfaces.conn.ISocketActionListener; import com.easysocket.utils.LogUtil; -import java.nio.charset.Charset; - /** * Author锛欰lex * Date锛�2019/6/4 @@ -129,7 +127,9 @@ */ public EasySocket disconnect(boolean isNeedReconnect) { LogUtil.d("EasySocket--銆媎isconnect"); - getDefconnection().disconnect(isNeedReconnect); + if (defConnection != null) { + getDefconnection().disconnect(isNeedReconnect); + } return this; } -- Gitblit v1.8.0