From dd66601f0dbd477e58bc53f0234e9f37c4a17753 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Mon, 27 Oct 2025 20:31:14 -0400 Subject: [PATCH] Fixed out of order queues being sent off to clients. --- src/app/channel/media/queue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/channel/media/queue.js b/src/app/channel/media/queue.js index 9bbaa01..671fac7 100644 --- a/src/app/channel/media/queue.js +++ b/src/app/channel/media/queue.js @@ -1708,8 +1708,8 @@ class queue{ media.earlyEnd = null; } - //Add it to the schedule array as if it where part of the actual schedule map - schedule.push([media.startTime, media]); + //Add it to the temporary schedule array as if it where part of the actual schedule map + schedule.unshift([media.startTime, media]); //Otherwise if it's older }else{ //Then we should be done as archived items are added as they are played/end.