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:
parent
0fa9f43498
commit
9b8bb88d8d
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue