1
0
Fork 0
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:
Chase Evans 2018-05-23 12:48:07 -07:00
parent e4255d03fb
commit 3f174e2c60

View file

@ -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