ability post LeaseSet update to destination's thread

This commit is contained in:
orignal 2024-10-17 16:20:27 -04:00
parent fe71776b6f
commit bc9d25ec3b
5 changed files with 9 additions and 6 deletions

View file

@ -588,9 +588,12 @@ namespace client
i2p::garlic::GarlicDestination::HandleDeliveryStatusMessage (msgID);
}
void LeaseSetDestination::SetLeaseSetUpdated ()
void LeaseSetDestination::SetLeaseSetUpdated (bool post)
{
UpdateLeaseSet ();
if (post)
m_Service.post([s = shared_from_this ()]() { s->UpdateLeaseSet (); });
else
UpdateLeaseSet ();
}
void LeaseSetDestination::Publish ()