Skip to content

Commit

Permalink
Fix mistake - catch Throwable to cover more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Jun 19, 2024
1 parent 25dadfb commit 33ed282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java.base/share/classes/sun/nio/ch/Poller.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ private void register(int fdVal) throws IOException {
assert previous == null;
try {
implRegister(fdVal);
} catch (IOException io) {
} catch (Throwable t) {
map.remove(fdVal);
throw t;
}
}

Expand Down

0 comments on commit 33ed282

Please sign in to comment.