about summary refs log tree commit homepage
path: root/lib/rainbows/fiber_spawn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/fiber_spawn.rb')
-rw-r--r--lib/rainbows/fiber_spawn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber_spawn.rb b/lib/rainbows/fiber_spawn.rb
index 969c05b..004976a 100644
--- a/lib/rainbows/fiber_spawn.rb
+++ b/lib/rainbows/fiber_spawn.rb
@@ -23,7 +23,7 @@ module Rainbows
 
       begin
         ret = begin
-          IO.select(rd.keys.concat(LISTENERS), wr.keys, nil, 1) or next
+          IO.select(rd.keys.concat(LISTENERS), wr.keys, nil, timer) or next
         rescue Errno::EINTR
           G.tick
           retry