From a58f06407291824be882d896df58bace5e663196 Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 6 May 2020 20:22:14 -0300 Subject: clear timeData when a new track starts this makes it so that the value of timeData at any point will always be associated with the track which is currently playing. i thought this was already how timeData worked -- that assumption is what makes a lot of the math in updateQueueLengthLabel work! --- backend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend.js b/backend.js index 900a822..69aa815 100644 --- a/backend.js +++ b/backend.js @@ -412,6 +412,7 @@ class QueuePlayer extends EventEmitter { return } + this.timeData = null this.playingTrack = item this.emit('playing', this.playingTrack, oldTrack, this) -- cgit 1.3.0-6-gf8a5