1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

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