修改告警

Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
师皓杰 2024-08-01 09:24:48 +00:00 committed by Gitee
parent efd44053df
commit 56f9c5c60b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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++;
}