diff options
Diffstat (limited to 'lib/rainbows/rev/core.rb')
-rw-r--r-- | lib/rainbows/rev/core.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb index 785990c..b78fe85 100644 --- a/lib/rainbows/rev/core.rb +++ b/lib/rainbows/rev/core.rb @@ -14,10 +14,7 @@ module Rainbows def on_readable return if CONN.size >= MAX - begin - CL.new(@_io.accept_nonblock).attach(LOOP) - rescue Errno::EAGAIN, Errno::ECONNABORTED - end + io = Rainbows.accept(@_io) and CL.new(io).attach(LOOP) end end # class Server |