mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
publish updated LeaseSet in destination's thread
This commit is contained in:
parent
b7c350202d
commit
b041bcdc65
1 changed files with 6 additions and 2 deletions
|
@ -281,8 +281,12 @@ namespace client
|
||||||
i2p::garlic::GarlicDestination::SetLeaseSetUpdated ();
|
i2p::garlic::GarlicDestination::SetLeaseSetUpdated ();
|
||||||
if (m_IsPublic)
|
if (m_IsPublic)
|
||||||
{
|
{
|
||||||
m_PublishVerificationTimer.cancel ();
|
auto s = shared_from_this ();
|
||||||
Publish ();
|
m_Service.post ([s](void)
|
||||||
|
{
|
||||||
|
s->m_PublishVerificationTimer.cancel ();
|
||||||
|
s->Publish ();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue