Handle router selection jitter timeout only once (#758)

This commit is contained in:
Robert Lubos
2016-10-06 18:04:46 +02:00
committed by Jonathan Hui
parent 00059947d3
commit 2c21e83d89
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -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;
}
}