Browse Source

fixed clang build error

gha
orignal 3 months ago
parent
commit
abbe1fea64
  1. 6
      libi2pd/SSU2.cpp

6
libi2pd/SSU2.cpp

@ -1269,14 +1269,14 @@ namespace transport @@ -1269,14 +1269,14 @@ namespace transport
// bump creation time for previous introducers if no new sessions found
LogPrint (eLogDebug, "SSU2: No new introducers found. Trying to reuse existing");
impliedList.clear ();
for (const auto& [ident, tag] : introducers)
for (const auto& it : introducers)
{
auto session = FindSession (ident);
auto session = FindSession (it.first);
if (session && session->IsEstablished () && session->GetRelayTag () && session->IsOutgoing ())
{
session->SetCreationTime (session->GetCreationTime () + SSU2_TO_INTRODUCER_SESSION_DURATION);
if (std::find_if (newList.begin (), newList.end (),
[&ident](const auto& s){ return ident == s.first; }) == newList.end ())
[&ident = it.first](const auto& s){ return ident == s.first; }) == newList.end ())
sessions.push_back (session);
}
}

Loading…
Cancel
Save