Browse Source

fixed send keepalive for existing session

pull/1957/head
orignal 1 year ago
parent
commit
2064504cce
  1. 5
      libi2pd/SSU2.cpp

5
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 ();
}
else
session = nullptr;
}
if (session) session->SendKeepAlive ();
}
if (!session)
i2p::context.RemoveSSU2Introducer (it, v4);

Loading…
Cancel
Save