mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 05:47:17 +01:00
fix
This commit is contained in:
parent
0c6ee5e139
commit
82e955ec02
|
@ -233,7 +233,7 @@ namespace datagram
|
||||||
m_CurrentOutboundTunnel = m_LocalDestination->GetTunnelPool()->GetNextOutboundTunnel(m_CurrentOutboundTunnel);
|
m_CurrentOutboundTunnel = m_LocalDestination->GetTunnelPool()->GetNextOutboundTunnel(m_CurrentOutboundTunnel);
|
||||||
path->outboundTunnel = m_CurrentOutboundTunnel;
|
path->outboundTunnel = m_CurrentOutboundTunnel;
|
||||||
}
|
}
|
||||||
if(m_CurrentRemoteLease && ! m_CurrentRemoteLease->ExpiresWithin(DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW)) {
|
if(m_CurrentRemoteLease && m_CurrentRemoteLease->ExpiresWithin(DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW)) {
|
||||||
// bad lease, switch to next one
|
// bad lease, switch to next one
|
||||||
if(m_RemoteLeaseSet) {
|
if(m_RemoteLeaseSet) {
|
||||||
auto ls = m_RemoteLeaseSet->GetNonExpiredLeasesExcluding([&](const i2p::data::Lease& l) -> bool {
|
auto ls = m_RemoteLeaseSet->GetNonExpiredLeasesExcluding([&](const i2p::data::Lease& l) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue