feat: fix release lock bug

Signed-off-by:xiada <xiada4@huawei.com>
This commit is contained in:
xiada2023 2024-01-18 20:19:24 +08:00
parent 4e8b34cca0
commit 84aacc3382

View File

@ -722,6 +722,7 @@ static void FillTransSuccessRateDetail(cJSON *transObj)
MapIterator *it = LnnMapInitIterator(&g_transStatsInfo.sessionNameLinkTypeMap);
if (it == NULL) {
COMM_LOGI(COMM_DFX, "map is empty");
TransMapUnlock();
return;
}
while (LnnMapHasNext(it)) {