From b5d139f7b269456d6db26e31c54a0297fe4b7187 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 26 Jun 2022 14:31:24 -0400 Subject: [PATCH] process session created after session request sent --- libi2pd/SSU2.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 5a13aadc..56ccfe93 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -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); }