From 9b8bb88d8d27c9f26448a3e94533aa5e7a371339 Mon Sep 17 00:00:00 2001 From: Nate Berkopec Date: Sat, 10 Sep 2022 20:44:12 +0900 Subject: [PATCH] Remove Ruby 2.2 workaround (#2946) --- lib/puma/server.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index c129c14b..b3878c9f 100644 --- a/lib/puma/server.rb +++ b/lib/puma/server.rb @@ -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