зеркало из https://github.com/github/ruby.git
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:
Родитель
a3aec76e7c
Коммит
6b11ee7288
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче