Skip to content

Commit

Permalink
[session] Update ForEachSessionHandle to new API.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Jan 6, 2022
1 parent df053e0 commit 74f1607
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transport/SessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,7 @@ SessionHandle SessionManager::FindSecureSessionForNode(NodeId peerNodeId)
[[maybe_unused]] CHIP_ERROR SessionManager::ForEachSessionHandle(void * context, SessionHandleCallback lambda)
{
mSecureSessions.ForEachSession([&](auto session) {
SessionHandle handle(session->GetPeerNodeId(), session->GetLocalSessionId(), session->GetPeerSessionId(),
session->GetFabricIndex());
SessionHandle handle(*session);
lambda(context, handle);
return Loop::Continue;
});
Expand Down

0 comments on commit 74f1607

Please sign in to comment.