Skip to content

Commit

Permalink
use imEngine to get case session in RefreshKeySender (#35236)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored Sep 4, 2024
1 parent 19e7aa3 commit a5d5f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/icd/client/RefreshKeySender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a5d5f85

Please sign in to comment.