[meshcop] stop coaps before restart (#3063)

This commit is contained in:
Yakun Xu
2018-09-11 14:53:16 -10:00
committed by Jonathan Hui
parent e53c8824ac
commit 8a093a3f83
+3 -1
View File
@@ -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);
}
}