random pick tunnels

This commit is contained in:
orignal 2014-08-27 22:21:29 -04:00
parent c025bcfdfc
commit e50377e557
2 changed files with 13 additions and 3 deletions

View file

@ -273,7 +273,7 @@ namespace tunnel
OutboundTunnel * tunnel = nullptr;
for (auto it: m_OutboundTunnels)
{
if (i >= ind) return it;
if (i >= ind) break;
if (it->IsEstablished ())
{
tunnel = it;