Skip to content

Commit

Permalink
Should be an or of connect and write
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 25, 2024
1 parent f8045dc commit f0ad1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -3980,7 +3980,7 @@ public IRubyObject wait(ThreadContext context, IRubyObject[] argv) {
ops |= SelectionKey.OP_ACCEPT | SelectionKey.OP_READ;
}
if ((fix.getIntValue() & IOEvent.IO_WRITABLE.value) != 0) {
ops |= SelectionKey.OP_WRITE | SelectionKey.OP_WRITE;
ops |= SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE;
}
} else {
throw context.runtime.newArgumentError("unsupported mode: " + argv[1].getType());
Expand Down

0 comments on commit f0ad1a0

Please sign in to comment.