Skip to content

Commit

Permalink
Fix ClosedChannelException
Browse files Browse the repository at this point in the history
Summary: I attempted to fix the ClosedByInterruptException in D21438754, but because I didn't move the file constructor into the loop, it just converted it into ChannelClosedException

Reviewed By: tophyr

Differential Revision: D21506323

fbshipit-source-id: 16134c11ff3e354b333badffcf22e73ddb0a9303
  • Loading branch information
Tom Mulcahy authored and facebook-github-bot committed May 11, 2020
1 parent a5e96b9 commit f8d54f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/com/facebook/soloader/MinElf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f8d54f5

Please sign in to comment.