mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fix @notify.close can't modify frozen IOError (RuntimeError)
This commit is contained in:
parent
e4255d03fb
commit
3f174e2c60
1 changed files with 2 additions and 1 deletions
|
@ -256,7 +256,8 @@ module Puma
|
|||
Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue
|
||||
end
|
||||
|
||||
@notify.close
|
||||
# Prevent can't modify frozen IOError (RuntimeError)
|
||||
@notify.close rescue nil
|
||||
|
||||
if @status != :restart and @own_binder
|
||||
@binder.close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue