Browse Source

publish updated LeaseSet in destination's thread

pull/1154/head
orignal 7 years ago
parent
commit
b041bcdc65
  1. 8
      libi2pd/Destination.cpp

8
libi2pd/Destination.cpp

@ -281,8 +281,12 @@ namespace client @@ -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 ();
});
}
}

Loading…
Cancel
Save