Remove Ruby 2.2 workaround (#2946)

This commit is contained in:
Nate Berkopec 2022-09-10 20:44:12 +09:00 committed by GitHub
parent 0fa9f43498
commit 9b8bb88d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -376,12 +376,11 @@ module Puma
rescue Exception => e
@log_writer.unknown_error e, nil, "Exception handling servers"
ensure
# RuntimeError is Ruby 2.2 issue, can't modify frozen IOError
# Errno::EBADF is infrequently raised
[@check, @notify].each do |io|
begin
io.close unless io.closed?
rescue Errno::EBADF, RuntimeError
rescue Errno::EBADF
end
end
@notify = nil