[3.3.0]fix bug of network on main thread
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user