From 6ad75d32c2389d3bfb358c60b77715db71c1f413 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 22:40:08 +0000 Subject: player: fix logic around sink death/respawns We do not need a respawn flag, since we already infer expected vs unexpected sink death by checking the @targets array. Additionally, next_source must always check @current before calling, and not clobber the existing @current because that would cause two source processes writing into the same pipe. --- lib/dtas/sink.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/dtas/sink.rb') diff --git a/lib/dtas/sink.rb b/lib/dtas/sink.rb index e28d479..836b0f1 100644 --- a/lib/dtas/sink.rb +++ b/lib/dtas/sink.rb @@ -16,7 +16,6 @@ class DTAS::Sink # :nodoc: attr_accessor :active # boolean attr_accessor :name attr_accessor :nonblock - attr_accessor :respawn include DTAS::Command include DTAS::Process @@ -30,7 +29,6 @@ class DTAS::Sink # :nodoc: "nonblock" => false, "pipe_size" => nil, "active" => false, - "respawn" => false, }) DEVFD_RE = %r{/dev/fd/([a-zA-Z]\w*)\b} -- cgit v1.2.3-24-ge0c7