Skip to content

Commit

Permalink
Update src/controller/CHIPDeviceControllerFactory.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
yufengwangca and bzbarsky-apple authored Dec 13, 2024
1 parent 99ada31 commit 266a107
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/controller/CHIPDeviceControllerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ CHIP_ERROR DeviceControllerFactory::InitSystemState(FactoryInitParams params)

chip::app::InteractionModelEngine * interactionModelEngine = chip::app::InteractionModelEngine::GetInstance();

// Calling SetDataModelProvider() initializes the provider and then triggers the
// InitDataModelHandler. As a result, the data model provider will be available
// before InitDataModelHandler is invoked
// Initialize the data model now that everything cluster implementations might
// depend on is initalized.
interactionModelEngine->SetDataModelProvider(params.dataModelProvider);

ReturnErrorOnFailure(Dnssd::Resolver::Instance().Init(stateParams.udpEndPointManager));
Expand Down

0 comments on commit 266a107

Please sign in to comment.