diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 356b5bace489ba..51e59c92eb053a 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -312,6 +312,10 @@ CHIP_ERROR DeviceController::Shutdown() mState = State::NotInitialized; + // Shut down the interaction model before we try shuttting down the exchange + // manager. + app::InteractionModelEngine::GetInstance()->Shutdown(); + // TODO(#6668): Some exchange has leak, shutting down ExchangeManager will cause a assert fail. // if (mExchangeMgr != nullptr) // {