process session created after session request sent

This commit is contained in:
orignal 2022-06-26 14:31:24 -04:00
parent 463ed12ce8
commit b5d139f7b2

View File

@ -386,8 +386,11 @@ namespace transport
auto it1 = m_PendingOutgoingSessions.find (senderEndpoint);
if (it1 != m_PendingOutgoingSessions.end ())
{
if (it1->second->ProcessSessionCreated (buf, len))
m_PendingOutgoingSessions.erase (it1); // we are done with that endpoint
if (it1->second->GetState () == eSSU2SessionStateSessionRequestSent)
{
if (it1->second->ProcessSessionCreated (buf, len))
m_PendingOutgoingSessions.erase (it1); // we are done with that endpoint
}
else
it1->second->ProcessRetry (buf, len);
}