aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 12:41:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 12:41:09 +0000
commit15c1f393251ff4d7c6e19048cbc3d517c411cb7f (patch)
treec2e81cb62e48c3af55fe00aae1de9ee292e505f0 /test/openssl
parentb615309541f0df96399b7b8154967eeb4fc06327 (diff)
downloadruby-15c1f393251ff4d7c6e19048cbc3d517c411cb7f.tar.gz
test_pair.rb: thread leak
* test/openssl/test_pair.rb (test_ecdh_callback): fix thread leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_pair.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index cd5d5d8959..5bf74e596d 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -368,6 +368,7 @@ module OpenSSL::TestPairM
sock1.close if sock1
sock2.close if sock2
accepted.close if accepted.respond_to?(:close)
+ th.join rescue nil
end
def test_connect_accept_nonblock_no_exception