Skip to content

Commit

Permalink
Be more explicit about the situation we call socket.accept.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 10, 2024
1 parent 24ad8ee commit 5bc0f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io/endpoint/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def accept(server, timeout: nil, linger: nil, **options, &block)

async do
# Maybe we can expose this back to the endpoint?
socket.accept if socket.respond_to?(:accept)
socket.accept if socket.is_a?(::OpenSSL::SSL::SSLSocket)

yield socket, address
rescue => error
Expand Down

0 comments on commit 5bc0f7d

Please sign in to comment.