Commit 4f3a749d authored by Takashi Sogabe's avatar Takashi Sogabe

Fix incorrect condition for pendig-IO

parent 5625e443
...@@ -612,7 +612,7 @@ mrb_io_s_select(mrb_state *mrb, mrb_value klass) ...@@ -612,7 +612,7 @@ mrb_io_s_select(mrb_state *mrb, mrb_value klass)
read_io = RARRAY_PTR(read)[i]; read_io = RARRAY_PTR(read)[i];
fptr = (struct mrb_io *)mrb_get_datatype(mrb, read_io, &mrb_io_type); fptr = (struct mrb_io *)mrb_get_datatype(mrb, read_io, &mrb_io_type);
FD_SET(fptr->fd, rp); FD_SET(fptr->fd, rp);
if (!mrb_io_read_data_pending(mrb, read_io)) { if (mrb_io_read_data_pending(mrb, read_io)) {
pending++; pending++;
FD_SET(fptr->fd, &pset); FD_SET(fptr->fd, &pset);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment