publish updated LeaseSet in destination's thread

This commit is contained in:
orignal 2018-03-23 11:41:36 -04:00
parent b7c350202d
commit b041bcdc65

View File

@ -281,8 +281,12 @@ namespace client
i2p::garlic::GarlicDestination::SetLeaseSetUpdated ();
if (m_IsPublic)
{
m_PublishVerificationTimer.cancel ();
Publish ();
auto s = shared_from_this ();
m_Service.post ([s](void)
{
s->m_PublishVerificationTimer.cancel ();
s->Publish ();
});
}
}