Skip to content

Commit

Permalink
update comment with more details
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Apr 3, 2024
1 parent 59a9862 commit 39b23f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ bool InteractionModelEngine::SubjectHasPersistedSubscription(FabricIndex aFabric

#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
auto * iterator = mpSubscriptionResumptionStorage->IterateSubscriptions();
// Verify that we were able to allocate an iterator. If not, assume we have a persisted subscription.
// Verify that we were able to allocate an iterator. If not, we are probably currently trying to resubscribe to our persisted
// subscriptions. As such, we assume we have a persisted subscription and return true.
// If we don't have a persisted subscription for the given fabric index and subjectID, we will send a Check-In message next time
// we transition to ActiveMode.
VerifyOrReturnValue(iterator, true);

SubscriptionResumptionStorage::SubscriptionInfo subscriptionInfo;
Expand Down

0 comments on commit 39b23f4

Please sign in to comment.