Browse Source

Revert "minimize count of errors "I2CP: Failed to send message. No outbound tunnels""

This reverts commit 8ff2627e8e.
pull/662/head
Jeff Becker 8 years ago
parent
commit
456d9e79e6
  1. 8
      I2CP.cpp

8
I2CP.cpp

@ -103,8 +103,7 @@ namespace client @@ -103,8 +103,7 @@ namespace client
}
auto path = remoteSession->GetSharedRoutingPath ();
std::shared_ptr<i2p::tunnel::OutboundTunnel> outboundTunnel;
std::shared_ptr<const i2p::data::Lease> remoteLease;
bool unconfirmedTags=false;
std::shared_ptr<const i2p::data::Lease> remoteLease;
if (path)
{
if (!remoteSession->CleanupUnconfirmedTags ()) // no stuck tags
@ -113,12 +112,9 @@ namespace client @@ -113,12 +112,9 @@ namespace client
remoteLease = path->remoteLease;
}
else
{
remoteSession->SetSharedRoutingPath (nullptr);
unconfirmedTags=true;
}
}
if (!path || unconfirmedTags)
else
{
outboundTunnel = GetTunnelPool ()->GetNextOutboundTunnel ();
auto leases = remote->GetNonExpiredLeases ();

Loading…
Cancel
Save