Skip to content

Commit

Permalink
[rubygems/rubygems] WEBrick:Utils::TimeoutHandler is always provided …
Browse files Browse the repository at this point in the history
…after webrick gem

rubygems/rubygems@b0502a0c50
  • Loading branch information
hsbt authored and matzbot committed Jan 31, 2024
1 parent 5808c86 commit c70052e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/rubygems/test_gem_remote_fetcher.rb
Expand Up @@ -1129,8 +1129,7 @@ def stop_servers
@ssl_server_thread.kill.join
@ssl_server_thread = nil
end
utils = WEBrick::Utils # TimeoutHandler is since 1.9
utils::TimeoutHandler.terminate if defined?(utils::TimeoutHandler.terminate)
WEBrick::Utils::TimeoutHandler.terminate
end

def normal_server_port
Expand Down

0 comments on commit c70052e

Please sign in to comment.