[meshcop] avoid unnecessary RemoveUnsecurePort (#4821)

This commit is contained in:
Rongli Sun
2020-04-14 16:56:54 -07:00
committed by GitHub
parent 9c45b68759
commit c2930f841f
+2
View File
@@ -91,6 +91,8 @@ void JoinerRouter::HandleStateChanged(otChangedFlags aFlags)
}
else
{
VerifyOrExit(mSocket.IsBound());
Get<Ip6::Filter>().RemoveUnsecurePort(mSocket.GetSockName().mPort);
mSocket.Close();