summaryrefslogtreecommitdiff
path: root/ext/socket/lib
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2022-12-13 13:57:38 -0600
committerGitHub <noreply@github.com>2022-12-14 08:57:38 +1300
commit74995162fc5d530e1a7a91b9f5c11a3b270f7f5f (patch)
treebf602e7af2b6e2df26052400acac56e2b9d4cf70 /ext/socket/lib
parent1859784422ca7f19710bbfb1b12b46fdd8ecf3cb (diff)
socket.rb - don't load io/wait (#6922)
See d2166c09b08fc1 and #6036 for more context.
Notes
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'ext/socket/lib')
-rw-r--r--ext/socket/lib/socket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index 6196638bd2..6e1e78b809 100644
--- a/ext/socket/lib/socket.rb
+++ b/ext/socket/lib/socket.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'socket.so'
-require 'io/wait'
+require 'io/wait' unless ::IO.public_instance_methods(false).include? :wait_readable
class Addrinfo
# creates an Addrinfo object from the arguments.