mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 07:37:46 +00:00
[meshcop] stop coaps before restart (#3063)
This commit is contained in:
@@ -629,11 +629,13 @@ void BorderAgent::HandleConnected(bool aConnected)
|
||||
}
|
||||
else
|
||||
{
|
||||
ThreadNetif &netif = GetNetif();
|
||||
ThreadNetif & netif = GetNetif();
|
||||
Coap::CoapSecure &coaps = netif.GetCoapSecure();
|
||||
|
||||
otLogInfoMeshCoP(GetInstance(), "Commissioner disconnected");
|
||||
netif.GetIp6().GetUdp().RemoveReceiver(mProxyReceiver);
|
||||
netif.RemoveUnicastAddress(mCommissionerAloc);
|
||||
coaps.Stop();
|
||||
mTimer.Start(kRestartDelay);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user