From f5ed9129cd5ef5aa8e10709a314d3d62ee5cfb87 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 29 Jun 2022 08:09:43 -0400 Subject: [PATCH] process retry as reponse to relay request --- libi2pd/SSU2.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 4210afc0..4674d9be 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -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); }