diff --git a/NetDb.cpp b/NetDb.cpp index 7f146e85..f3719290 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -481,6 +481,8 @@ namespace data dest->GetLastRouter ()->GetIdentHash (), 0, msg }); } + else + RequestDestination (router, false, pool); } else LogPrint ("Bayan"); diff --git a/Tunnel.cpp b/Tunnel.cpp index 5a736f61..88e7a70a 100644 --- a/Tunnel.cpp +++ b/Tunnel.cpp @@ -273,12 +273,12 @@ namespace tunnel OutboundTunnel * tunnel = nullptr; for (auto it: m_OutboundTunnels) { - if (i >= ind) break; if (it->IsEstablished ()) { tunnel = it; i++; } + if (i >= ind) break; } return tunnel; } diff --git a/TunnelPool.cpp b/TunnelPool.cpp index 6481fa40..2f4a4f12 100644 --- a/TunnelPool.cpp +++ b/TunnelPool.cpp @@ -97,12 +97,12 @@ namespace tunnel typename TTunnels::value_type tunnel = nullptr; for (auto it: tunnels) { - if (i >= ind) break; if (it->IsEstablished ()) { tunnel = it; i++; } + if (i >= ind) break; } return tunnel; }