diff --git a/java/com/facebook/soloader/MinElf.java b/java/com/facebook/soloader/MinElf.java index 560428c..237bcad 100644 --- a/java/com/facebook/soloader/MinElf.java +++ b/java/com/facebook/soloader/MinElf.java @@ -68,8 +68,8 @@ public String toString() { public static final int PN_XNUM = 0xFFFF; public static String[] extract_DT_NEEDED(File elfFile) throws IOException { - FileInputStream is = new FileInputStream(elfFile); while (true) { + FileInputStream is = new FileInputStream(elfFile); try { return extract_DT_NEEDED(is.getChannel()); } catch (ClosedByInterruptException e) {