Reset thread's interrupted flag when catching InterruptedException

Closes gh-6360
This commit is contained in:
Andy Wilkinson
2016-07-11 16:42:36 +01:00
parent e53d3167ab
commit 4963cfd67b
9 changed files with 12 additions and 7 deletions

View File

@@ -252,6 +252,7 @@ public class RandomAccessDataFile implements RandomAccessData {
: file);
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IOException(ex);
}
}
@@ -276,6 +277,7 @@ public class RandomAccessDataFile implements RandomAccessData {
}
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IOException(ex);
}
}