mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
...test
This commit is contained in:
1 parent
fa05407166
commit
9e67bcce25
1 file changed
+6
-1
@@ -254,9 +254,11 @@ function buildQueueEndHandler(p, ctx) {
|
|||||||
return async () => {
|
return async () => {
|
||||||
if (!p._autoplay || p._destroyed) return;
|
if (!p._autoplay || p._destroyed) return;
|
||||||
if (p.queue?.getCurrent() || !(p.queue?.isEmpty?.() ?? true)) return;
|
if (p.queue?.getCurrent() || !(p.queue?.isEmpty?.() ?? true)) return;
|
||||||
|
if (p._autoplayQueueEndPicking) return;
|
||||||
|
p._autoplayQueueEndPicking = true;
|
||||||
|
|
||||||
const lastTrack = p._lastPlayedTrack;
|
const lastTrack = p._lastPlayedTrack;
|
||||||
if (!lastTrack) return;
|
if (!lastTrack) { p._autoplayQueueEndPicking = false; return; }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
p._stopInactivityTimer();
|
p._stopInactivityTimer();
|
||||||
@@ -277,6 +279,8 @@ function buildQueueEndHandler(p, ctx) {
|
|||||||
if (!p.queue?.getCurrent() && p.queue?.isEmpty() && !p._is247Enabled()) {
|
if (!p.queue?.getCurrent() && p.queue?.isEmpty() && !p._is247Enabled()) {
|
||||||
p._startInactivityTimer();
|
p._startInactivityTimer();
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
p._autoplayQueueEndPicking = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -347,6 +351,7 @@ export async function run(msg, data) {
|
|||||||
p._autoplayMixPools?.clear();
|
p._autoplayMixPools?.clear();
|
||||||
p._autoplayPreferredPoolVid = null;
|
p._autoplayPreferredPoolVid = null;
|
||||||
p._autoplayPickChain = null;
|
p._autoplayPickChain = null;
|
||||||
|
p._autoplayQueueEndPicking = false;
|
||||||
|
|
||||||
return msg.reply({
|
return msg.reply({
|
||||||
embeds: [new EmbedBuilder()
|
embeds: [new EmbedBuilder()
|
||||||
|
|||||||
Reference in new issue
Block a user