Skip to content

Commit

Permalink
Use IO::WaitReadable instead of JRuby's SSLErrorWaitReadable
Browse files Browse the repository at this point in the history
It's the same thing, but the code is portable.
  • Loading branch information
iconara committed Sep 5, 2014
1 parent 0e36833 commit 33c1f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ione/io/ssl_connection.rb
Expand Up @@ -45,7 +45,7 @@ def read
new_data = @io.read_nonblock(2**16)
@data_listener.call(new_data) if @data_listener
end
rescue OpenSSL::SSL::SSLErrorWaitReadable
rescue IO::WaitReadable
# no more data available
rescue => e
close(e)
Expand Down

0 comments on commit 33c1f37

Please sign in to comment.