修复 #710039 java.util.ConcurrentModificationException

https://bugly.qq.com/v2/crash-reporting/crashes/f3f8b0b2f1?pid=1

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-11-08 17:06:36 +08:00
parent 43df2264a0
commit d6c5c468f4

View File

@@ -6,6 +6,7 @@ import com.mogo.eagle.core.data.autopilot.AutopilotRouteInfo
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotPlanningListener
import com.mogo.eagle.core.function.call.base.CallerBase
import com.mogo.eagle.core.utilcode.mogo.logger.Logger
import java.util.concurrent.ConcurrentHashMap
/**
* @author xiaoyuzhou
@@ -16,8 +17,8 @@ object CallerAutopilotPlanningListenerManager : CallerBase() {
private val TAG = "CallerAutopilotPlanningListenerManager"
// 存储所有注册了监听的对象invokeXXXX进行遍历回调将信息同步
private val M_AUTOPILOT_PLANNING_LISTENER: HashMap<String, IMoGoAutopilotPlanningListener> =
HashMap()
private val M_AUTOPILOT_PLANNING_LISTENER: ConcurrentHashMap<String, IMoGoAutopilotPlanningListener> =
ConcurrentHashMap()
/**