about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-01 22:13:09 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-01 22:13:09 +0000
commit4edc13592f71e54d4ef620fc67080733d88c53d0 (patch)
tree3449f4c555a77f4647437d27321ceaf793e68154 /lib/dtas
parent8b890e002517160d37012800b29339a1a4875af3 (diff)
downloaddtas-4edc13592f71e54d4ef620fc67080733d88c53d0.tar.gz
stop_sinks is already defined, so avoid repeating this loop
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/player/client_handler.rb2
1 files changed, 1 insertions, 1 deletions
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)