Skip to content

Commit

Permalink
[refactor] no need to flush again, we just did it
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Jul 2, 2022
1 parent db9df7b commit 68d4c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/ext/openssl/SSLSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private IRubyObject doHandshake(final boolean blocking, final boolean exception)
netWriteData.compact();
netWriteData = Utils.ensureCapacity(netWriteData, engine.getSession().getPacketBufferSize());
netWriteData.flip();
if (handshakeStatus != SSLEngineResult.HandshakeStatus.NEED_UNWRAP || flushData(blocking)) {
if (handshakeStatus != SSLEngineResult.HandshakeStatus.NEED_UNWRAP) {
sel = waitSelect(SelectionKey.OP_WRITE, blocking, exception);
if ( sel instanceof IRubyObject ) return (IRubyObject) sel; // :wait_writeable
}
Expand Down

0 comments on commit 68d4c2f

Please sign in to comment.