diff options
author | nobu <nobu@ruby-lang.org> | 2015-07-29 12:41:09 +0000 |
---|---|---|
committer | nobu <nobu@ruby-lang.org> | 2015-07-29 12:41:09 +0000 |
commit | a2c07fd6079c26ed452a8020520d24c0c0c26925 (patch) | |
tree | 6ac246412a4d82540988c59f37c2a9d987d7d049 /test/test_pair.rb | |
parent | d5ad1a723ad1c1c7e8a24263d4ce346b9242ec6b (diff) | |
download | ruby-openssl-history-a2c07fd6079c26ed452a8020520d24c0c0c26925.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/test_pair.rb')
-rw-r--r-- | test/test_pair.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pair.rb b/test/test_pair.rb index cd5d5d8..5bf74e5 100644 --- a/test/test_pair.rb +++ b/test/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 |