cancel destination request

This commit is contained in:
orignal 2015-12-13 14:40:43 -05:00
parent de6dd77046
commit fdd96975fb
3 changed files with 15 additions and 0 deletions

View file

@ -533,6 +533,17 @@ namespace client
return true;
}
void ClientDestination::CancelDestinationRequest (const i2p::data::IdentHash& dest)
{
auto s = shared_from_this ();
m_Service.post ([dest, s](void)
{
auto it = s->m_LeaseSetRequests.find (dest);
if (it != s->m_LeaseSetRequests.end ())
s->m_LeaseSetRequests.erase (it);
});
}
void ClientDestination::RequestLeaseSet (const i2p::data::IdentHash& dest, RequestComplete requestComplete)
{
std::set<i2p::data::IdentHash> excluded;