From 4742599c6801c25b00a2233086ae2f1091eac675 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 11 Sep 2013 21:56:51 +0000 Subject: player (tl add): do not repeat first track when idle When a player is idle and a track is added to an empty tracklist, we should not repeat the first track added to the tracklist. Avoid that by advancing the tracklist to the current track. --- lib/dtas/player/client_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/player/client_handler.rb') diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index 70d992b..9c28486 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -540,7 +540,7 @@ module DTAS::Player::ClientHandler # :nodoc: # start playing if we're the only track if @tl.size == 1 && !(@current || @queue[0] || @paused) - next_source(path) + next_source(_next) end io.emit("#{track_id}") when "repeat" -- cgit v1.2.3-24-ge0c7