mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[srp-client] fix lease time on remove host retransmission (#7216)
This commit is contained in:
@@ -1071,7 +1071,7 @@ Error Client::AppendUpdateLeaseOptRecord(Message &aMessage) const
|
||||
|
||||
leaseOption.Init();
|
||||
|
||||
if (mHostInfo.GetState() == kToRemove)
|
||||
if ((mHostInfo.GetState() == kToRemove) || (mHostInfo.GetState() == kRemoving))
|
||||
{
|
||||
leaseOption.SetLeaseInterval(0);
|
||||
leaseOption.SetKeyLeaseInterval(mShouldRemoveKeyLease ? 0 : mKeyLeaseInterval);
|
||||
|
||||
Reference in New Issue
Block a user