« get me outta code hell

Because adding an explanation totally makes it alright - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-09-02 12:33:41 -0300
committerFlorrie <towerofnix@gmail.com>2017-09-02 12:33:41 -0300
commit3c3084aab308685f03a0546f9e46d143106283a6 (patch)
tree1155860a15412c25d12be6e2ba9bd67a0a4053f6 /src
parentb07b97d9213228491151ec4fd255df65419c8dc8 (diff)
Because adding an explanation totally makes it alright
Diffstat (limited to 'src')
-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)