1
0
Fork 0
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:
Gustav Munkby 2013-10-31 17:33:44 +01:00
parent a0e3474d89
commit 62755750a5

View file

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