Skip to content

Commit b68c9ba

Browse files
authored
Update playerHandler.js
1 parent 57d966d commit b68c9ba

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/services/music/playerHandler.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ export function setupPlayerHandler(client) {
117117
client.riffy.on('queueEnd', async (player) => {
118118
try {
119119
const guildData = getGuildMusicData(player.guildId);
120+
121+
// If loop is active, Riffy handles replaying — don't clean up or disconnect
122+
if (guildData.loop && guildData.loop !== 'none') {
123+
return;
124+
}
125+
120126
clearUpdateInterval(guildData);
121127

122128
if (guildData.autoplay) {

0 commit comments

Comments
 (0)