1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

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

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