This commit is contained in:
NoLogicAlan committed 2026-09-02 00:56:14 +03:00
1 parent 20cc1bcafb
commit e435af7eb2
2 files changed
+16 -19

No files matched your search

+11 -2
View File
@@ -1316,6 +1316,17 @@ export class GatewayHandler {
*/
async rejoin247Channels() {
this._bootRecoveryActive = true;
try {
await this._rejoin247ChannelsInner();
} catch (err) {
logger.warn("[BootRecovery] 24/7 boot recovery crashed:", err?.message ?? err);
} finally {
this._bootRecoveryActive = false;
}
}
/** @private Inner boot-recovery loop. The flag reset is handled by the caller's finally block. */
async _rejoin247ChannelsInner() {
const { remix } = this;
const channelsToRejoin = [];
@@ -1429,8 +1440,6 @@ export class GatewayHandler {
logger.voice247(
`[BootRecovery] Boot recovery complete. ${channelsToRejoin.length} channel(s) processed.`
);
this._bootRecoveryActive = false;
}
/**