Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time sync: add check for fabric removal #28011

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

cecille
Copy link
Contributor

@cecille cecille commented Jul 17, 2023

Test: tested against cert test TC-TIMESYNC-2.13 implemented in #27917

@mergify mergify bot merged commit d972f17 into project-chip:master Jul 18, 2023
@@ -258,6 +258,13 @@ void TimeSynchronizationServer::Init()
{
mGranularity = GranularityEnum::kNoTimeGranularity;
}
// This can error, but it's not clear what should happen in this case. For now, just ignore it because we still
// want time sync even if we can't register the deletgate here.
CHIP_ERROR err = chip::Server::GetInstance().GetFabricTable().AddFabricDelegate(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not RemoveFabricdDelegate on shutdown, or at worst in the destructor?

erwinpan1 pushed a commit to erwinpan1/connectedhomeip that referenced this pull request Jul 21, 2023
* Time sync: add check for fabric removal

* Update src/app/clusters/time-synchronization-server/time-synchronization-server.cpp
@cecille cecille deleted the time_sync_fabric branch September 28, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app review - approved time sync Implementation of the Time Synchronization cluster
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants