Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@ public static IRubyObject wait_readable(ThreadContext context, IRubyObject _io,
}

if (fptr.readPending() != 0) return runtime.getTrue();
boolean ready = fptr.ready(runtime, context.getThread(), SelectionKey.OP_READ, tv);
boolean ready = fptr.ready(runtime, context.getThread(), SelectionKey.OP_READ | SelectionKey.OP_ACCEPT, tv);
fptr.checkClosed();
if (ready) return io;
return context.nil;

0 comments on commit 64638d0

Please sign in to comment.