add missing interrupt restore on InterruptedException

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769409 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-04-28 14:05:43 +00:00
parent 3b71cc921a
commit ea90d1152d
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public abstract class Lock {
} catch (InterruptedException e) {
// In 3.0 we will change this to throw
// InterruptedException instead
Thread.currentThread().interrupt();
throw new IOException(e.toString());
}
locked = obtain();