don't miss active tunnel

This commit is contained in:
orignal 2014-08-29 07:44:12 -04:00
parent 9557adf8c2
commit b6a3f64ee9
2 changed files with 2 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;
} }