From 56f9c5c60b850f96ea68f93efbb880cff7987cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=88=E7=9A=93=E6=9D=B0?= Date: Thu, 1 Aug 2024 09:24:48 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 师皓杰 --- services/dtbschedmgr/src/dms_callback_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dtbschedmgr/src/dms_callback_task.cpp b/services/dtbschedmgr/src/dms_callback_task.cpp index 9a17d9bd..6b16e6f4 100644 --- a/services/dtbschedmgr/src/dms_callback_task.cpp +++ b/services/dtbschedmgr/src/dms_callback_task.cpp @@ -173,7 +173,7 @@ void DmsCallbackTask::NotifyDeviceOffline(const std::string& deviceId) dmsCallbackHandler_->RemoveEvent(it->second.taskId); } DistributedSchedService::GetInstance().NotifyFreeInstallResult(it->second, DEVICE_OFFLINE_ERR); - (void)callbackMap_.erase(it++); + it = callbackMap_.erase(it); } else { it++; }