From a5d5f856d171468581d716f17efa7c604066f062 Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Wed, 4 Sep 2024 10:47:09 -0700 Subject: [PATCH] use imEngine to get case session in RefreshKeySender (#35236) --- src/app/icd/client/RefreshKeySender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/icd/client/RefreshKeySender.cpp b/src/app/icd/client/RefreshKeySender.cpp index c49bf79f30a17c..9e4547538e679e 100644 --- a/src/app/icd/client/RefreshKeySender.cpp +++ b/src/app/icd/client/RefreshKeySender.cpp @@ -87,7 +87,7 @@ CHIP_ERROR RefreshKeySender::RegisterClientWithNewKey(Messaging::ExchangeManager CHIP_ERROR RefreshKeySender::EstablishSessionToPeer() { ChipLogProgress(ICD, "Trying to establish a CASE session for re-registering an ICD client"); - auto * caseSessionManager = InteractionModelEngine::GetInstance()->GetCASESessionManager(); + auto * caseSessionManager = mpImEngine->GetCASESessionManager(); VerifyOrReturnError(caseSessionManager != nullptr, CHIP_ERROR_INVALID_CASE_PARAMETER); caseSessionManager->FindOrEstablishSession(mICDClientInfo.peer_node, &mOnConnectedCallback, &mOnConnectionFailureCallback); return CHIP_NO_ERROR;