cancel the timeout in any case

This commit is contained in:
kimchy 2010-07-21 16:38:37 +03:00
parent 8d45901a8a
commit 0cb97e4044
1 changed files with 1 additions and 3 deletions

View File

@ -144,9 +144,7 @@ public class SearchContext implements Releasable {
// ignore this as well
}
engineSearcher.release();
if (!keepAliveTimeout.isCancelled()) {
keepAliveTimeout.cancel();
}
keepAliveTimeout.cancel();
return true;
}