From 0f7da65624197e1b3028bcd0e8fd6b4aea1a790a Mon Sep 17 00:00:00 2001 From: yunhanw Date: Thu, 11 Aug 2022 10:11:40 -0700 Subject: [PATCH] address comments --- src/app/InteractionModelEngine.cpp | 2 -- src/messaging/tests/MessagingContext.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index f3b5ff46fb010c..de111f4595d8e0 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -1435,8 +1435,6 @@ void InteractionModelEngine::OnFabricRemoved(const FabricTable & fabricTable, Fa if (readClient->GetFabricIndex() == fabricIndex) { ChipLogProgress(InteractionModel, "Fabric removed, deleting obsolete read client with FabricIndex: %u", fabricIndex); - RemoveReadClient(readClient); - readClient->mpImEngine = nullptr; readClient->Close(CHIP_ERROR_IM_FABRIC_DELETED, false); } } diff --git a/src/messaging/tests/MessagingContext.cpp b/src/messaging/tests/MessagingContext.cpp index 4696a8850f23b7..24c6ff216d4ae3 100644 --- a/src/messaging/tests/MessagingContext.cpp +++ b/src/messaging/tests/MessagingContext.cpp @@ -115,6 +115,7 @@ void MessagingContext::SetMRPMode(MRPMode mode) mSessionDavidToCharlie->AsSecureSession()->SetRemoteMRPConfig( ReliableMessageProtocolConfig(System::Clock::Milliseconds32(10), System::Clock::Milliseconds32(10))); } +} CHIP_ERROR MessagingContext::CreateAliceFabric() {