mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 01:49:52 +00:00
[srp-client] skip appending services on host remove retry (#7218)
This commit updates `Srp::Client` to skip appending services when the host is being removed. On the first attempt the `mHostInfo.GetState()` will be `kToRemove` but on the retries it will be `kRemoving`.
This commit is contained in:
@@ -767,7 +767,7 @@ Error Client::PrepareUpdateMessage(Message &aMessage)
|
||||
|
||||
// Prepare Update section
|
||||
|
||||
if (mHostInfo.GetState() != kToRemove)
|
||||
if ((mHostInfo.GetState() != kToRemove) && (mHostInfo.GetState() != kRemoving))
|
||||
{
|
||||
for (Service &service : mServices)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user