mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
request and handle LeaseSets through local destination only
This commit is contained in:
parent
46ea2291fe
commit
3547a4042c
7 changed files with 173 additions and 14 deletions
|
@ -433,7 +433,7 @@ namespace client
|
|||
const i2p::data::LeaseSet * leaseSet = i2p::data::netdb.FindLeaseSet (ident);
|
||||
if (!leaseSet)
|
||||
{
|
||||
i2p::data::netdb.RequestDestination (ident, true, i2p::client::context.GetSharedLocalDestination ()->GetTunnelPool ());
|
||||
i2p::client::context.GetSharedLocalDestination ()->RequestDestination (ident);
|
||||
std::this_thread::sleep_for (std::chrono::seconds (5)); // wait for 5 seconds
|
||||
leaseSet = i2p::client::context.GetSharedLocalDestination ()->FindLeaseSet (ident);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue