Skip to content

Commit 39b23f4

Browse files
update comment with more details
1 parent 59a9862 commit 39b23f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/InteractionModelEngine.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ bool InteractionModelEngine::SubjectHasPersistedSubscription(FabricIndex aFabric
365365

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

371374
SubscriptionResumptionStorage::SubscriptionInfo subscriptionInfo;

0 commit comments

Comments
 (0)