From 406b1dee6e6d0627ee42ef539816f3f69191bcad Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 10 Jul 2025 22:15:28 -0700 Subject: [PATCH] [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. --- src/core/instance/instance.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/instance/instance.cpp b/src/core/instance/instance.cpp index f9aa03765..435d6144d 100644 --- a/src/core/instance/instance.cpp +++ b/src/core/instance/instance.cpp @@ -430,9 +430,6 @@ void Instance::Finalize(void) mIsInitialized = false; #if OPENTHREAD_MTD || OPENTHREAD_FTD -#if OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE - Get().SetEnabled(false); -#endif Get().Stop(); Get().Down(); Get().SetEnabled(false);