Skip to content

Commit 046ff13

Browse files
fix compilation
1 parent cbe4e31 commit 046ff13

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/app/InteractionModelEngine.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,8 @@ void InteractionModelEngine::OnActiveModeNotification(ScopedNodeId aCheckInNode,
10771077
// It is possible that pListItem is destroyed by the app in OnActiveModeNotification.
10781078
// Get the next item before invoking `OnActiveModeNotification`.
10791079
if (ScopedNodeId(pListItem->GetPeerNodeId(), pListItem->GetFabricIndex()) == aPeer &&
1080-
aCheckInNode == pListItem->GetLocalScopedNodeId())
1080+
pListItem->GetLocalScopedNodeId().HasValue() &&
1081+
aCheckInNode == pListItem->GetLocalScopedNodeId().Value())
10811082
{
10821083
pListItem->OnActiveModeNotification();
10831084
}

src/app/ReadClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void ReadClient::OnActiveModeNotification()
488488

489489
// Note: this API only works when issuing subscription via SendAutoResubscribeRequest, when SendAutoResubscribeRequest is called,
490490
// either mEventPathParamsListSize or mAttributePathParamsListSize is not 0.
491-
VerifyOrDie(mReadPrepareParams.mEventPathParamsListSize != 0 || mReadPrepareParams.mAttributePathParamsListSize != 0)
491+
VerifyOrDie(mReadPrepareParams.mEventPathParamsListSize != 0 || mReadPrepareParams.mAttributePathParamsListSize != 0);
492492

493493
// When we reach here, the subscription definitely exceeded the liveness timeout. Just continue the unfinished resubscription
494494
// logic in `OnLivenessTimeoutCallback`.

src/app/ReadClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ class ReadClient : public Messaging::ExchangeDelegate
511511

512512
Optional<ScopedNodeId> GetLocalScopedNodeId() const
513513
{
514-
VerifyOrReturnValue(aReadPrepareParams.mSessionHolder, NullOptional);
514+
VerifyOrReturnValue(mReadPrepareParams.mSessionHolder, NullOptional);
515515
return MakeOptional(mReadPrepareParams.mSessionHolder->AsSecureSession()->GetLocalScopedNodeId());
516516
}
517517

src/app/icd/client/RefreshKeySender.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CHIP_ERROR RefreshKeySender::RegisterClientWithNewKey(Messaging::ExchangeManager
6969

7070
mpCheckInDelegate->OnCheckInComplete(mICDClientInfo);
7171
#if CHIP_CONFIG_ENABLE_READ_CLIENT
72-
mpImEngine->OnActiveModeNotification(mICDClientInfo.peer_node);
72+
mpImEngine->OnActiveModeNotification(mICDClientInfo.check_in_node, mICDClientInfo.peer_node);
7373
#endif // CHIP_CONFIG_ENABLE_READ_CLIENT
7474
mpCheckInDelegate->OnKeyRefreshDone(this, CHIP_NO_ERROR);
7575
};

src/controller/tests/data_model/TestRead.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ TEST_F(TestRead, TestSubscribeFailed_OnActiveModeNotification)
23922392

23932393
GetLoopback().mNumMessagesToDrop = 0;
23942394
callback.ClearCounters();
2395-
InteractionModelEngine::GetInstance()->OnActiveModeNotification(
2395+
InteractionModelEngine::GetInstance()->OnActiveModeNotification(readClient.GetLocalScopedNodeId().Value(),
23962396
ScopedNodeId(readClient.GetPeerNodeId(), readClient.GetFabricIndex()));
23972397
//
23982398
// Drive servicing IO till we have established a subscription.

0 commit comments

Comments
 (0)