mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Use real blocks instead of Symbol#to_proc
This commit is contained in:
parent
a0e3474d89
commit
62755750a5
1 changed files with 2 additions and 2 deletions
|
@ -27,10 +27,10 @@ module Puma
|
|||
begin
|
||||
ready = IO.select sockets, nil, nil, @sleep_for
|
||||
rescue IOError => e
|
||||
if sockets.any?(&:closed?)
|
||||
if sockets.any? { |socket| socket.closed? }
|
||||
STDERR.puts "Error in select: #{e.message} (#{e.class})"
|
||||
STDERR.puts e.backtrace
|
||||
sockets = sockets.reject(&:closed)
|
||||
sockets = sockets.reject { |socket| socket.closed? }
|
||||
retry
|
||||
else
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue