Browse Source

update LeaseSet for ECIESX25519AEADRatchet sessions

pull/1499/head
orignal 5 years ago
parent
commit
3c53479864
  1. 8
      libi2pd/Garlic.cpp

8
libi2pd/Garlic.cpp

@ -810,8 +810,12 @@ namespace garlic
void GarlicDestination::SetLeaseSetUpdated () void GarlicDestination::SetLeaseSetUpdated ()
{ {
std::unique_lock<std::mutex> l(m_SessionsMutex); {
for (auto& it: m_Sessions) std::unique_lock<std::mutex> l(m_SessionsMutex);
for (auto& it: m_Sessions)
it.second->SetLeaseSetUpdated ();
}
for (auto& it: m_ECIESx25519Sessions)
it.second->SetLeaseSetUpdated (); it.second->SetLeaseSetUpdated ();
} }

Loading…
Cancel
Save