Browse Source

process retry as reponse to relay request

pull/1771/head
orignal 3 years ago
parent
commit
f5ed9129cd
  1. 8
      libi2pd/SSU2.cpp

8
libi2pd/SSU2.cpp

@ -409,11 +409,9 @@ namespace transport @@ -409,11 +409,9 @@ namespace transport
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
}
if (it1->second->GetState () == eSSU2SessionStateSessionRequestSent &&
it1->second->ProcessSessionCreated (buf, len))
m_PendingOutgoingSessions.erase (it1); // we are done with that endpoint
else
it1->second->ProcessRetry (buf, len);
}

Loading…
Cancel
Save