try to pick an outbound tunnel with same endpoint instead expired

This commit is contained in:
orignal 2015-04-17 10:11:51 -04:00
parent 873754c6ca
commit fcb56db224
3 changed files with 19 additions and 1 deletions

View file

@ -597,7 +597,7 @@ namespace stream
}
}
if (!m_CurrentOutboundTunnel || !m_CurrentOutboundTunnel->IsEstablished ())
m_CurrentOutboundTunnel = m_LocalDestination.GetOwner ().GetTunnelPool ()->GetNextOutboundTunnel ();
m_CurrentOutboundTunnel = m_LocalDestination.GetOwner ().GetTunnelPool ()->GetNewOutboundTunnel (m_CurrentOutboundTunnel);
if (!m_CurrentOutboundTunnel)
{
LogPrint (eLogError, "No outbound tunnels in the pool");