Browse Source

process session created after session request sent

pull/1771/head
orignal 2 years ago
parent
commit
b5d139f7b2
  1. 3
      libi2pd/SSU2.cpp

3
libi2pd/SSU2.cpp

@ -385,9 +385,12 @@ namespace transport @@ -385,9 +385,12 @@ namespace transport
// check pending sessions if it's SessionCreated or Retry
auto it1 = m_PendingOutgoingSessions.find (senderEndpoint);
if (it1 != m_PendingOutgoingSessions.end ())
{
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);
}

Loading…
Cancel
Save