[3.3.0]fix bug of network on main thread

This commit is contained in:
zhongchao
2023-06-21 13:38:42 +08:00
parent 6e48343119
commit fbf93db0a4
2 changed files with 0 additions and 4 deletions

View File

@@ -323,8 +323,6 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
//todo 归一处理
private fun getPrReason(msg: String): String {
val map = hashMapOf<String, Any>()
map["wifiState"] =
if (NetworkUtils.isAvailable()) "wifi enable" else "wifi disable"
map["lat"] =
if (CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude != 0.0)
CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude else
@@ -334,7 +332,6 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().longitude else
CallerMapUIServiceManager.getGDLocationServer(context!!)!!.lastLon
map["reason"] = msg
map["time"] = System.currentTimeMillis()
return GsonUtils.toJson(map)
}

View File

@@ -640,7 +640,6 @@ public class AdasChannel implements IAdasNetCommApi, FpgaSocket.IWebSocketConnec
* 如果ipcConnectionStatus == Constants.IPC_CONNECTION_STATUS.DISCONNECTED && reason==null 表示主动断开连接
*/
private void updateConnectStatus(@Define.IPCConnectionStatus int status, @Nullable String reason) {
Log.d("emArrow", "status:" + status + " , reason :" + reason);
log(status, reason);
ipcConnectionStatus.set(status);
if (status == Constants.IPC_CONNECTION_STATUS.CONNECTED) {