Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/src/main/java/org/jruby/ext/socket/RubySocket.java
Original file line number Diff line number Diff line change
@@ -202,18 +202,14 @@ public IRubyObject connect_nonblock(ThreadContext context, IRubyObject arg, IRub

boolean exception = ArgsUtil.extractKeywordArg(context, "exception", opts) != runtime.getFalse();

doConnectNonblock(context, getChannel(), addr, exception);

return RubyFixnum.zero(context.runtime);
return doConnectNonblock(context, getChannel(), addr, exception);
}

@JRubyMethod()
public IRubyObject connect(ThreadContext context, IRubyObject arg) {
SocketAddress addr = addressForChannel(context, arg);

doConnect(context, getChannel(), addr, true);

return RubyFixnum.zero(context.runtime);
return doConnect(context, getChannel(), addr, true);
}

@JRubyMethod()

0 comments on commit 015d17c

Please sign in to comment.