Skip to content

Commit d345d51

Browse files
authored
[NXP][wifi-otbr] fix TC-CGEN-2.2 issue due to multiple mdns advertising updates in short time (project-chip#42032)
Signed-off-by: Martin Girardot <[email protected]>
1 parent b335217 commit d345d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/platform/nxp/common/DnssdImplBr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ CHIP_ERROR NxpChipDnssdRemoveServices()
251251

252252
if ((0 == strcmp(mServiceList[mServiceListFreeIndex]->mHostName, hostName)) &&
253253
((0 == strcmp(mServiceList[mServiceListFreeIndex]->mServiceType, "_matter._tcp")) ||
254-
(0 == strcmp(mServiceList[mServiceListFreeIndex]->mServiceType, "_matterc._udp"))))
254+
(0 == strcmp(mServiceList[mServiceListFreeIndex]->mServiceType, "_matterc._udp"))) &&
255+
(mServiceList[mServiceListFreeIndex]->mTtl > 0))
256+
// if mTtl = 0 , the service is already in the removal process but not yet removed
255257
{
256258
mServiceListFreeIndex++;
257259
}

0 commit comments

Comments
 (0)