about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/revactor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb
index 006a3b1..1b954b4 100644
--- a/lib/rainbows/revactor.rb
+++ b/lib/rainbows/revactor.rb
@@ -97,6 +97,8 @@ module Rainbows
             clients += 1
             root.link(actor)
           rescue Errno::EAGAIN, Errno::ECONNABORTED
+          rescue Errno::EBADF
+            break
           rescue Object => e
             listen_loop_error(e) if alive
           end while alive