diff --git a/src/transport/SessionManager.cpp b/src/transport/SessionManager.cpp index 3a7bd44a3ce38f..bd84ab651ba84d 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;