This commit is contained in:
NoLogicAlan committed 2026-08-23 03:37:43 +03:00
1 parent e7b706323b
commit 5ff380f0c9
1 file changed
+2 -20
+2 -20
View File
@@ -1592,29 +1592,11 @@ export class GatewayHandler {
`[BootRecovery] Successfully rejoined channel ${channelId} (mode: ${mode}) [${i + 1}/${channelsToRejoin.length}]` `[BootRecovery] Successfully rejoined channel ${channelId} (mode: ${mode}) [${i + 1}/${channelsToRejoin.length}]`
); );
} else { } else {
try {
const set = remix.settingsMgr.getServer(guildId);
if (set) {
const raw = set.get("stay_247");
const channels = new Set(
(Array.isArray(raw) ? raw : [raw])
.filter(id => id && id !== "none" && cleanId(id) !== channelId)
);
set.set("stay_247", channels.size > 0 ? [...channels] : "none");
remove247ChannelMode(set, channelId, channels);
logger.warn( logger.warn(
`[BootRecovery] Auto-removed channel ${channelId} from 24/7 ` + `[BootRecovery] Failed to rejoin channel ${channelId} in guild ${guildId} after retries — ` +
`in guild ${guildId} after persistent track publication failure` `keeping 24/7 setting intact, will retry on next disconnect/restart.`
); );
} }
} catch (cleanupErr) {
logger.error(
`[BootRecovery] Failed to auto-remove channel ${channelId} from 24/7:`,
cleanupErr?.message ?? cleanupErr
);
}
}
} }
logger.voice247( logger.voice247(