Skip to content

Commit

Permalink
Prevent ExchangeMgr::Shutdown to be called twice (#15169)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Mar 2, 2022
1 parent 580048a commit 1013509
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/messaging/ExchangeMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ CHIP_ERROR ExchangeManager::Init(SessionManager * sessionManager)

CHIP_ERROR ExchangeManager::Shutdown()
{
VerifyOrReturnError(mState == State::kState_Initialized, CHIP_ERROR_INCORRECT_STATE);

mReliableMessageMgr.Shutdown();

if (mSessionManager != nullptr)
Expand Down

0 comments on commit 1013509

Please sign in to comment.