From 81cf4ad5670209512091d7a2eec6f81a9fb32c3c Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 15 Dec 2007 15:00:52 +0000 Subject: * test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even on an error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_pair.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb index 727355436..17713c998 100644 --- a/test/openssl/test_pair.rb +++ b/test/openssl/test_pair.rb @@ -54,6 +54,11 @@ module SSLPair else return c, s end + ensure + if th && th.alive? + th.kill + th.join + end end end -- cgit