[instance] remove border agent disabling in Finalize (#11711)

This commit removes the explicit call to disable the `BorderAgent`
during instance finalization. This change prevents issues where the
call may trigger platform interactions that can fail due to the
platform layer being deinitialized before the `Finalize` is called.
This commit is contained in:
Abtin Keshavarzian
2025-07-10 22:15:28 -07:00
committed by GitHub
parent 72277d3ea3
commit 406b1dee6e
-3
View File
@@ -430,9 +430,6 @@ void Instance::Finalize(void)
mIsInitialized = false;
#if OPENTHREAD_MTD || OPENTHREAD_FTD
#if OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE
Get<MeshCoP::BorderAgent>().SetEnabled(false);
#endif
Get<Mle::Mle>().Stop();
Get<ThreadNetif>().Down();
Get<Mac::Mac>().SetEnabled(false);