diff --git a/src/transport/SessionManager.cpp b/src/transport/SessionManager.cpp index 8842c728b4c08e..2c84097f3f832c 100644 --- a/src/transport/SessionManager.cpp +++ b/src/transport/SessionManager.cpp @@ -111,6 +111,12 @@ void SessionManager::Shutdown() mFabricTable->RemoveFabricDelegate(this); mFabricTable = nullptr; } + + mSecureSessions.ForEachSession([&](auto session) { + session->MarkForEviction(); + return Loop::Continue; + }); + mMessageCounterManager = nullptr; mState = State::kNotReady;