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;
i++;
}
if (i >= ind) break;
if (i > ind && tunnel) break;
}
return tunnel;
}

View File

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