Browse Source

fixed send keepalive for existing session

pull/1957/head
orignal 11 months ago
parent
commit
2064504cce
  1. 7
      libi2pd/SSU2.cpp

7
libi2pd/SSU2.cpp

@ -1002,12 +1002,11 @@ namespace transport @@ -1002,12 +1002,11 @@ namespace transport
else
{
if (ts < session->GetCreationTime () + SSU2_TO_INTRODUCER_SESSION_EXPIRATION)
{
impliedList.push_back (it); // keep in introducers list, but not publish
session->SendKeepAlive ();
}
session = nullptr;
else
session = nullptr;
}
if (session) session->SendKeepAlive ();
}
if (!session)
i2p::context.RemoveSSU2Introducer (it, v4);

Loading…
Cancel
Save