mirror of
https://github.com/espressif/openthread.git
synced 2026-07-25 05:24:08 +00:00
Handle router selection jitter timeout only once (#758)
This commit is contained in:
committed by
Jonathan Hui
parent
00059947d3
commit
2c21e83d89
@@ -2165,7 +2165,7 @@ ThreadError Mle::HandleChildIdResponse(const Message &aMessage, const Ip6::Messa
|
||||
(mDeviceMode & ModeTlv::kModeFFD) &&
|
||||
(numRouters < mMleRouter.GetRouterUpgradeThreshold()))
|
||||
{
|
||||
mRouterSelectionJitterTimeout = otPlatRandomGet() % mRouterSelectionJitter;
|
||||
mRouterSelectionJitterTimeout = (otPlatRandomGet() % mRouterSelectionJitter) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user