dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/4] player/client_handler: cleanup to avoid redundant code


From: Eric Wong
Subject: [PATCH 3/4] player/client_handler: cleanup to avoid redundant code
Date: Sun, 1 Sep 2013 22:16:50 +0000

stop_sinks is already defined, so avoid repeating this loop
---
 lib/dtas/player/client_handler.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dtas/player/client_handler.rb 
b/lib/dtas/player/client_handler.rb
index bbdc1c5..16714f0 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -385,7 +385,7 @@ module DTAS::Player::ClientHandler # :nodoc:
   def restart_pipeline
     return if @paused
     __current_requeue
-    @targets.each { |t| drop_target(t) }.clear
+    stop_sinks
   end
 
   def format_handler(io, msg)
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]