mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
minimize count of errors "I2CP: Failed to send message. No outbound tunnels"
This commit is contained in:
parent
f79ad91a9a
commit
8ff2627e8e
8
I2CP.cpp
8
I2CP.cpp
|
@ -103,7 +103,8 @@ namespace client
|
|||
}
|
||||
auto path = remoteSession->GetSharedRoutingPath ();
|
||||
std::shared_ptr<i2p::tunnel::OutboundTunnel> outboundTunnel;
|
||||
std::shared_ptr<const i2p::data::Lease> remoteLease;
|
||||
std::shared_ptr<const i2p::data::Lease> remoteLease;
|
||||
bool unconfirmedTags=false;
|
||||
if (path)
|
||||
{
|
||||
if (!remoteSession->CleanupUnconfirmedTags ()) // no stuck tags
|
||||
|
@ -112,9 +113,12 @@ namespace client
|
|||
remoteLease = path->remoteLease;
|
||||
}
|
||||
else
|
||||
{
|
||||
remoteSession->SetSharedRoutingPath (nullptr);
|
||||
unconfirmedTags=true;
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!path || unconfirmedTags)
|
||||
{
|
||||
outboundTunnel = GetTunnelPool ()->GetNextOutboundTunnel ();
|
||||
auto leases = remote->GetNonExpiredLeases ();
|
||||
|
|
Loading…
Reference in a new issue