From 39b23f4ad0ad25ce8a547545f60d1c092775e366 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Tue, 2 Apr 2024 17:24:41 -0400 Subject: [PATCH] update comment with more details --- src/app/InteractionModelEngine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index 4a6e2391b5d224..d0b020caf96315 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -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;