« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/loop-play.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/loop-play.js')
-rw-r--r--src/loop-play.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/loop-play.js b/src/loop-play.js
index f3cff7c..4cccb35 100644
--- a/src/loop-play.js
+++ b/src/loop-play.js
@@ -398,6 +398,10 @@ class PlayController extends EventEmitter {
         )
 
         // A little bit blecht, but.. this works.
+        // "When a track fails, remove it from the timeline, and start
+        // downloading whatever track fills its place."
+        // Only problem is if a track before the current timeline index fails,
+        // maybe? (Since then the timelineIndex value might be messed up?)
         const tl = this.historyController.timeline
         const index = tl.indexOf(picked)
         tl.splice(index, 1)