Skip to content

Commit 3992acb

Browse files
committed
Address PR comments
1 parent 4593e5b commit 3992acb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/fabric-admin/rpc/RpcServer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class FabricAdmin final : public rpc::FabricAdmin, public IcdManager::Delegate
4747
public:
4848
void OnCheckInCompleted(const chip::app::ICDClientInfo & clientInfo) override
4949
{
50+
// Needs for accessing mPendingCheckIn
51+
assertChipStackLockedByCurrentThread();
5052
NodeId nodeId = clientInfo.peer_node.GetNodeId();
5153
auto it = mPendingCheckIn.find(nodeId);
5254
VerifyOrReturn(it != mPendingCheckIn.end());
@@ -155,6 +157,8 @@ class FabricAdmin final : public rpc::FabricAdmin, public IcdManager::Delegate
155157

156158
void ScheduleSendingKeepActiveOnCheckIn(chip::NodeId nodeId, uint32_t stayActiveDurationMs)
157159
{
160+
// Needs for accessing mPendingCheckIn
161+
assertChipStackLockedByCurrentThread();
158162

159163
auto timeNow = System::SystemClock().GetMonotonicTimestamp();
160164
// Spec says we should expire the request 60 mins after we get it

0 commit comments

Comments
 (0)