diff options
Diffstat (limited to 'ext/socket')
| -rw-r--r-- | ext/socket/lib/socket.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index dae1c16760..9862c92c0b 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -917,8 +917,7 @@ class Socket < BasicSocket end ensure hostname_resolution_threads.each do |thread| - thread.kill - thread.join + thread.exit end hostname_resolution_result&.close |
