mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[meshcop] avoid unnecessary RemoveUnsecurePort (#4821)
This commit is contained in:
@@ -91,6 +91,8 @@ void JoinerRouter::HandleStateChanged(otChangedFlags aFlags)
|
||||
}
|
||||
else
|
||||
{
|
||||
VerifyOrExit(mSocket.IsBound());
|
||||
|
||||
Get<Ip6::Filter>().RemoveUnsecurePort(mSocket.GetSockName().mPort);
|
||||
|
||||
mSocket.Close();
|
||||
|
||||
Reference in New Issue
Block a user