Browse Source

fixed build for C++11

pull/1696/head
orignal 3 years ago
parent
commit
cc75efcbca
  1. 8
      libi2pd/Destination.cpp

8
libi2pd/Destination.cpp

@ -1104,18 +1104,22 @@ namespace client @@ -1104,18 +1104,22 @@ namespace client
if (leaseSet)
m_StreamingDestination->SendPing (leaseSet);
else
{
auto s = m_StreamingDestination;
RequestDestination (to,
[s = m_StreamingDestination](std::shared_ptr<const i2p::data::LeaseSet> ls)
[s](std::shared_ptr<const i2p::data::LeaseSet> ls)
{
if (ls) s->SendPing (ls);
});
}
}
}
void ClientDestination::SendPing (std::shared_ptr<const i2p::data::BlindedPublicKey> to)
{
auto s = m_StreamingDestination;
RequestDestinationWithEncryptedLeaseSet (to,
[s = m_StreamingDestination](std::shared_ptr<const i2p::data::LeaseSet> ls)
[s](std::shared_ptr<const i2p::data::LeaseSet> ls)
{
if (ls) s->SendPing (ls);
});

Loading…
Cancel
Save