From e34dcbdec70971808e169745afac4fef9aa0bdc8 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Mon, 21 Apr 2025 07:20:14 -0400 Subject: [PATCH] Fixed double-start bug in refreshNextTimer. --- src/app/channel/media/queue.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/channel/media/queue.js b/src/app/channel/media/queue.js index fa489ae..8c8ae1d 100644 --- a/src/app/channel/media/queue.js +++ b/src/app/channel/media/queue.js @@ -287,10 +287,8 @@ module.exports = class{ if(currentItem != null && (this.nowPlaying == null || currentItem.uuid != this.nowPlaying.uuid)){ //Start the found item at w/ a pre-calculated time stamp to reflect the given start time this.start(currentItem, Math.round((new Date().getTime() - currentItem.startTime) / 1000) + currentItem.startTimeStamp, volatile); - } - //If we have a next item - if(nextItem != null){ + }else if(nextItem != null){ //Calculate the amount of time in ms that the next item will start in const startsIn = nextItem.startTime - new Date().getTime();