mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed FD leaks
This commit is contained in:
parent
8aa70b9be2
commit
d0a05fd4b4
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
|
|||
Thread.new { server.accept.close }
|
||||
end
|
||||
client_threads = Array.new(client_threads_count) do
|
||||
Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) }
|
||||
Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) {} }
|
||||
end
|
||||
client_threads.each(&:join)
|
||||
accept_threads.each(&:join)
|
||||
|
|
Loading…
Add table
Reference in a new issue