diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/trafficlight/core/MogoTrafficLightManager.kt b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/trafficlight/core/MogoTrafficLightManager.kt index ccb92729d1..992862e93d 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/trafficlight/core/MogoTrafficLightManager.kt +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/trafficlight/core/MogoTrafficLightManager.kt @@ -23,6 +23,7 @@ import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightThreadHandl import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightThreadHandler.Companion.MSG_WHAT_STOP_SEARCH_TRAFFIC_LIGHT import com.mogo.eagle.function.biz.v2x.trafficlight.network.TrafficLightNetWorkModel import com.zhidaoauto.map.data.road.RoadCross +import java.lang.Exception class MogoTrafficLightManager : IMoGoChassisLocationGCJ02Listener, IMoGoMapRoadListener { @@ -70,15 +71,17 @@ class MogoTrafficLightManager : IMoGoChassisLocationGCJ02Listener, } // CallerLogger.i("$M_BIZ$TAG", "红绿灯路口请求 : $stopLineDis") mLocation?.let { it -> - trafficLightNetWorkModel.requestRoadID( - it.latitude, it.longitude, it.heading, - { - mThreadHandler?.sendEmptyMessage(MSG_WHAT_STOP_SEARCH_CROSS_ROAD) - roadIDResult = it - }, - { - //CallerLogger.w(M_V2X + TAG, "request road id error : $it") - }) + try { + trafficLightNetWorkModel.requestRoadID( + it.latitude, it.longitude, it.heading, + { + mThreadHandler?.sendEmptyMessage(MSG_WHAT_STOP_SEARCH_CROSS_ROAD) + roadIDResult = it + }, + { + //CallerLogger.w(M_V2X + TAG, "request road id error : $it") + }) + }catch (_: Exception){} } }, { //stop loop search road id