Skip to content

Commit f48930a

Browse files
update comment with more details
1 parent a32eb38 commit f48930a

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
@@ -364,7 +364,10 @@ bool InteractionModelEngine::SubjectHasPersistedSubscription(FabricIndex aFabric
364364

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

370373
SubscriptionResumptionStorage::SubscriptionInfo subscriptionInfo;

0 commit comments

Comments
 (0)