Browse Source

don't miss active tunnel

pull/93/head
orignal 10 years ago
parent
commit
b6a3f64ee9
  1. 2
      Tunnel.cpp
  2. 2
      TunnelPool.cpp

2
Tunnel.cpp

@ -278,7 +278,7 @@ namespace tunnel
tunnel = it; tunnel = it;
i++; i++;
} }
if (i >= ind) break; if (i > ind && tunnel) break;
} }
return tunnel; return tunnel;
} }

2
TunnelPool.cpp

@ -102,7 +102,7 @@ namespace tunnel
tunnel = it; tunnel = it;
i++; i++;
} }
if (i >= ind) break; if (i > ind && tunnel) break;
} }
return tunnel; return tunnel;
} }

Loading…
Cancel
Save