Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back the odd clear
Browse files Browse the repository at this point in the history
andreilitvin committed Jul 23, 2024
1 parent 3740379 commit b9a7ad0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
@@ -99,6 +99,13 @@ CHIP_ERROR InteractionModelEngine::Init(Messaging::ExchangeManager * apExchangeM
void InteractionModelEngine::Shutdown()
{
mpExchangeMgr->GetSessionManager()->SystemLayer()->CancelTimer(ResumeSubscriptionsTimerCallback, this);

// TODO: individual object clears the entire command handler interface registry.
// This may not be expected as IME does NOT own the command handler interface registry.
//
// This is to be cleaned up once InteractionModelEngine maintains a data model fully and
// the code-generation model can do its clear in its shutdown method.
CommandHandlerInterfaceRegistry::Instance().UnregisterAllHandlers();
mCommandResponderObjs.ReleaseAll();

mTimedHandlers.ForEachActiveObject([this](TimedHandler * obj) -> Loop {

0 comments on commit b9a7ad0

Please sign in to comment.