Skip to content

Commit

Permalink
test_gem_remote_fetcher.rb: terminate watcher
Browse files Browse the repository at this point in the history
* test/rubygems/test_gem_remote_fetcher.rb (stop_servers):
  terminate timeout watcher thread to fix thread leak.  re-apply
  r53439.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 8, 2016
1 parent 584f9e5 commit d475347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rubygems/test_gem_remote_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,8 @@ def stop_servers
@ssl_server_thread.kill.join
@ssl_server_thread = nil
end
timeout = WEBrick::Utils::TimeoutHandler
timeout.terminate if defined?(timeout.terminate)
end

def normal_server_port
Expand Down

0 comments on commit d475347

Please sign in to comment.