change the socket release func
This commit is contained in:
@@ -210,15 +210,11 @@ public class SocketManager implements IMogoCloudSocketManager {
|
||||
}
|
||||
|
||||
public synchronized void release() {
|
||||
mListeners.clear();
|
||||
mAckListeners.clear();
|
||||
if (cloudClientConfig.isThirdLogin()) {
|
||||
ThirdSocketManager.getInstance().release();
|
||||
} else {
|
||||
InternalSocketManager.getInstance().release();
|
||||
}
|
||||
cloudClientConfig = null;
|
||||
mInstance = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ public class ThirdSocketManager implements Callback {
|
||||
.setAuthPubKey(cloudClientConfig.getAuthPubKey())
|
||||
.setDebug(cloudClientConfig.isShowDebugLog());
|
||||
SocketClient.getInstance().registerSocketCallback(this);
|
||||
// SocketClient.getInstance().registerSocketConnCallback(this);
|
||||
SocketClient.getInstance().start(context);
|
||||
}
|
||||
|
||||
@@ -75,7 +74,6 @@ public class ThirdSocketManager implements Callback {
|
||||
boolean ack,
|
||||
long msgId) {
|
||||
SocketClient.getInstance().sendData(SOCKET_CHANNEL_ID, MogoCommon.Product.mogoBussiness.getNumber(), payload, headerType, ack, msgId);
|
||||
|
||||
}
|
||||
|
||||
public synchronized void release() {
|
||||
|
||||
@@ -27,25 +27,25 @@ SNAPSHOT_REPOSITORY_URL=http://nexus.zhidaoauto.com/repository/maven-snapshots/
|
||||
USERNAME=xintai
|
||||
PASSWORD=xintai2018
|
||||
# 编译模式: false - 依赖本地版本, true - 依赖 maven 版本
|
||||
RELEASE=false
|
||||
RELEASE=true
|
||||
# AI CLOUD 云平台
|
||||
# 工具类
|
||||
MOGO_UTILS_VERSION=1.1.28
|
||||
MOGO_UTILS_VERSION=1.1.29
|
||||
# 网络请求
|
||||
MOGO_NETWORK_VERSION=1.1.28
|
||||
MOGO_NETWORK_VERSION=1.1.29
|
||||
# 网络DNS
|
||||
MOGO_HTTPDNS_VERSION=1.1.28
|
||||
MOGO_HTTPDNS_VERSION=1.1.29
|
||||
# 鉴权
|
||||
MOGO_PASSPORT_VERSION=1.1.28
|
||||
MOGO_PASSPORT_VERSION=1.1.29
|
||||
# 常链接
|
||||
MOGO_SOCKET_VERSION=1.1.28
|
||||
MOGO_SOCKET_VERSION=1.1.29
|
||||
# 数据采集
|
||||
MOGO_REALTIME_VERSION=1.1.28
|
||||
MOGO_REALTIME_VERSION=1.1.29
|
||||
# 探路,道路事件发布,获取
|
||||
MOGO_TANLU_VERSION=1.1.28
|
||||
MOGO_TANLU_VERSION=1.1.29
|
||||
# 直播推流
|
||||
MOGO_LIVE_VERSION=1.1.28
|
||||
MOGO_LIVE_VERSION=1.1.29
|
||||
# 直播拉流
|
||||
MOGO_TRAFFICLIVE_VERSION=1.1.28
|
||||
MOGO_TRAFFICLIVE_VERSION=1.1.29
|
||||
# 定位服务
|
||||
MOGO_LOCATION_VERSION=1.1.28
|
||||
MOGO_LOCATION_VERSION=1.1.29
|
||||
|
||||
Reference in New Issue
Block a user