Skip to content

Commit 6da3d6e

Browse files
fix OnPeerTypeChange
--When sit transition to lit, check-in would be sent and activate the subscription. if any client subscribe to operating mode, and detect it becoems sit, just update the operating mode, there is no need to re-activate the subscription.
1 parent 059658e commit 6da3d6e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/app/ReadClient.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,6 @@ void ReadClient::OnPeerTypeChange(PeerType aType)
516516
mIsPeerLIT = (aType == PeerType::kLITICD);
517517

518518
ChipLogProgress(DataManagement, "Peer is now %s LIT ICD.", mIsPeerLIT ? "a" : "not a");
519-
520-
// If the peer is no longer LIT, try to wake up the subscription and do resubscribe when necessary.
521-
if (!mIsPeerLIT)
522-
{
523-
OnActiveModeNotification();
524-
}
525519
}
526520

527521
CHIP_ERROR ReadClient::OnMessageReceived(Messaging::ExchangeContext * apExchangeContext, const PayloadHeader & aPayloadHeader,

0 commit comments

Comments
 (0)