Trigger attach if device fails to start Router Synchronization process (#1104)

This commit is contained in:
Shu Chen
2017-01-03 09:12:56 -08:00
committed by Jonathan Hui
parent 64d49153bd
commit a88bf4cef5
+4 -1
View File
@@ -224,7 +224,10 @@ ThreadError Mle::Start(bool aEnableReattach)
}
else if (IsActiveRouter(GetRloc16()))
{
mMleRouter.BecomeRouter(ThreadStatusTlv::kTooFewRouters);
if (mMleRouter.BecomeRouter(ThreadStatusTlv::kTooFewRouters) != kThreadError_None)
{
BecomeChild(kMleAttachAnyPartition);
}
}
else
{