Skip to content

Commit

Permalink
Fix failed java build
Browse files Browse the repository at this point in the history
I think this was a bug from d4503a1.
  • Loading branch information
fishy committed Aug 14, 2024
1 parent 91565d4 commit 9d1ae4f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,11 @@ private synchronized void rebuildSelector() {
SelectionKey newKey;
try {
if (attachment == null) {
newKey = channel.register(newSelector, interestOpts);
newKey = channel.register(newSelector, interestOps);
} else {
newKey = channel.register(newSelector, interestOpts, attachment);
newKey = channel.register(newSelector, interestOps, attachment);
if (attachment instanceof FrameBuffer) {
((FrameBuffer) attachment.setSelectionKey(newKey);
((FrameBuffer) attachment).setSelectionKey(newKey);
}
}
} catch (ClosedChannelException e) {
Expand Down

0 comments on commit 9d1ae4f

Please sign in to comment.