File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/app/clusters/general-commissioning-server Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2828#include < platform/DeviceControlServer.h>
2929#include < platform/PlatformManager.h>
3030
31+ #if CHIP_CONFIG_TERMS_AND_CONDITIONS_REQUIRED
32+ #include < app/server/TermsAndConditionsManager.h>
33+ #endif
34+
3135using namespace chip ;
3236using namespace chip ::app;
3337using namespace chip ::app::Clusters;
@@ -83,8 +87,7 @@ class IntegrationDelegate : public CodegenClusterIntegration::Delegate
8387 return &gServer .Cluster ();
8488 }
8589
86- // Nothing to destroy: gRegistration is a global static that handles destruction
87- void ReleaseRegistration (unsigned clusterInstanceIndex) override {}
90+ void ReleaseRegistration (unsigned clusterInstanceIndex) override { gServer .Destroy (); }
8891};
8992
9093} // namespace
Original file line number Diff line number Diff line change 1616 */
1717
1818#include " general-commissioning-cluster.h"
19- #include " platform/ConfigurationManager.h"
2019
2120#include < app/AppConfig.h>
2221#include < app/reporting/reporting.h>
2726#include < clusters/GeneralCommissioning/Metadata.h>
2827#include < cstdint>
2928#include < optional>
29+ #include < platform/ConfigurationManager.h>
3030#include < platform/DeviceControlServer.h>
3131#include < platform/PlatformManager.h>
3232#include < tracing/macros.h>
You can’t perform that action at this time.
0 commit comments