about summary refs log tree commit homepage
path: root/lib/dtas/buffer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/buffer.rb')
-rw-r--r--lib/dtas/buffer.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/dtas/buffer.rb b/lib/dtas/buffer.rb
index c9f096c..c0ba6a6 100644
--- a/lib/dtas/buffer.rb
+++ b/lib/dtas/buffer.rb
@@ -47,16 +47,13 @@ class DTAS::Buffer # :nodoc:
   # - some type of StandardError
   # - nil
   def broadcast(targets)
-    bytes = inflight
-    return :wait_readable if 0 == bytes # spurious wakeup
-
     case targets.size
     when 0
       :ignore # this will pause decoders
     when 1
-      broadcast_one(targets, bytes)
+      broadcast_one(targets)
     else # infinity
-      broadcast_inf(targets, bytes)
+      broadcast_inf(targets)
     end
   end