mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
call unix_server.close only if unix_server is not nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3aec76e7c
commit
6b11ee7288
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class TestSocket < Test::Unit::TestCase
|
|||
assert_equal(clients.length, accepted.length)
|
||||
ensure
|
||||
tcp_servers.each {|s| s.close if !s.closed? }
|
||||
unix_server.close if !unix_server.closed?
|
||||
unix_server.close if unix_server && !unix_server.closed?
|
||||
clients.each {|s| s.close if !s.closed? }
|
||||
accepted.each {|s| s.close if !s.closed? }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue