From 17e736ab1aa940c37996090cbd4ac245b65092ec Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Thu, 10 Apr 2025 20:36:02 -0400 Subject: [PATCH] Fixed bug with server-side sync function --- src/app/channel/media/queue.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/channel/media/queue.js b/src/app/channel/media/queue.js index 9e69fb0..fa489ae 100644 --- a/src/app/channel/media/queue.js +++ b/src/app/channel/media/queue.js @@ -713,6 +713,12 @@ module.exports = class{ //Send sync signal out to the channel this.server.io.in(this.channel.name).emit("sync", {timestamp: this.timestamp}); + //If the media has been cleared out + if(this.nowPlaying == null){ + //Fuck off and don't bother + return; + } + //If the media has over a second to go if((this.timestamp + 1) < this.nowPlaying.duration){ //Increment the time stamp