[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:
Abtin Keshavarzian
2021-12-03 14:53:05 -08:00
committed by GitHub
parent 66d76090e0
commit 8048839206
+1 -1
View File
@@ -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)
{