Skip to content

Commit

Permalink
Is self not set correctly?
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 25, 2024
1 parent 53f49cd commit 3be50cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/ruby/ext/trilogy-ruby/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ static int _cb_ruby_wait(trilogy_sock_t *sock, trilogy_wait_t wait)
}

if (ctx->io == Qnil) {
VALUE io = rb_io_open_descriptor(rb_cIO, trilogy_sock_fd(sock), FMODE_EXTERNAL, RUBY_Qnil, RUBY_Qnil, NULL);
RB_OBJ_WRITE(ctx->self, &ctx->io, io);
fprintf("Creating io for context: %p\n", RSTRING_PTR(rb_inspect(ctx->self)));
RB_OBJ_WRITE(ctx->self, &ctx->io, rb_io_fdopen(trilogy_sock_fd(sock), O_RDWR, NULL));
}

if (timeout->tv_sec == 0 && timeout->tv_usec == 0) {
Expand Down

0 comments on commit 3be50cf

Please sign in to comment.