Skip to content

Commit 20a4394

Browse files
Address review comment.
1 parent a6de5c9 commit 20a4394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messaging/ExchangeMgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ ExchangeContext * ExchangeManager::NewContext(const SessionHandle & session, Exc
107107
if (!session->IsActiveSession())
108108
{
109109
#if CHIP_ERROR_LOGGING
110-
// Disallow creating exchange on an inactive session
111110
const ScopedNodeId & peer = session->GetPeer();
112111
ChipLogError(ExchangeManager, "NewContext failed: session %u to " ChipLogFormatScopedNodeId " is inactive",
113112
session->SessionIdForLogging(), ChipLogValueScopedNodeId(peer));
114113
#endif // CHIP_ERROR_LOGGING
115114

115+
// Disallow creating exchange on an inactive session
116116
return nullptr;
117117
}
118118
return mContextPool.CreateObject(this, mNextExchangeId++, session, isInitiator, delegate);

0 commit comments

Comments
 (0)