mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 05:37:46 +00:00
Only reset valid neighbor router if not heard for kMaxNeighborAge (#685)
This commit is contained in:
@@ -1704,7 +1704,7 @@ void MleRouter::HandleStateUpdateTimer(void)
|
||||
// update router state
|
||||
for (uint8_t i = 0; i <= kMaxRouterId; i++)
|
||||
{
|
||||
if (mRouters[i].mState != Neighbor::kStateInvalid)
|
||||
if (mRouters[i].mState == Neighbor::kStateValid)
|
||||
{
|
||||
if ((Timer::GetNow() - mRouters[i].mLastHeard) >= Timer::SecToMsec(kMaxNeighborAge))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user