From d6c5c468f47a2ec4b21e914112153018d7276b7d Mon Sep 17 00:00:00 2001 From: donghongyu Date: Mon, 8 Nov 2021 17:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20#710039=20java.util.Concur?= =?UTF-8?q?rentModificationException=20https://bugly.qq.com/v2/crash-repor?= =?UTF-8?q?ting/crashes/f3f8b0b2f1=3Fpid=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../call/autopilot/CallerAutopilotPlanningListenerManager.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotPlanningListenerManager.kt b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotPlanningListenerManager.kt index 1ca4f944ff..f4cb386e9d 100644 --- a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotPlanningListenerManager.kt +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotPlanningListenerManager.kt @@ -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 = - HashMap() + private val M_AUTOPILOT_PLANNING_LISTENER: ConcurrentHashMap = + ConcurrentHashMap() /**