mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
refactor(recovery): remove session persistence, simplify 24/7 auto-join & fix gateway races
- Remove boot-time recovery.json session persistence (RecoveryManager) - Replace 401 circuit-breaker with exponential backoff + 5-min guild ban - Add global voice join queue in FluxerRevoice (one join at a time, 3s gap) - Add 15s startup GuildDelete deferral to avoid wiping state during outages - Fix pendingSpawns Set/Map API mismatch in disconnect handler - Fix cross-guild join suppressing recovery for unrelated guild disconnects - Expose client._recoveryManager; remove shutdown recovery-save hooks - Increase guildMinJoinInterval from 7000ms to 8000ms
This commit is contained in:
1 parent
0d23d1bd50
commit
7b2d29e229
6 files changed
+488
-666
No files matched your search
@@ -113,7 +113,7 @@ export class PlayerManager {
|
||||
this.playerConfig = config.player;
|
||||
this.dashboard = config.dashboard ?? null;
|
||||
this.locale = config.locale ?? null;
|
||||
this.spawnPlayer = config.spawnPlayer ?? null; // RecoveryManager.spawnPlayer — for 24/7 rejoin on autoleave
|
||||
this.spawnPlayer = config.spawnPlayer ?? null; // RecoveryManager.spawnPlayer — for 24/7 rejoin
|
||||
this.timers = config.timers ?? {};
|
||||
this._lastfm = null; // Set later by Remix class after init
|
||||
}
|
||||
@@ -760,7 +760,7 @@ export class PlayerManager {
|
||||
if (this.spawnPlayer) {
|
||||
logger.recovery(`[AutoLeave] 24/7 rejoin scheduled for ${homeChannelId} (mode ${mode247}) in ${delay}ms`);
|
||||
setTimeout(() => {
|
||||
this.spawnPlayer(guildId, homeChannelId, 0, null, "initplayer-autoleave").catch(e =>
|
||||
this.spawnPlayer(guildId, homeChannelId).catch(e =>
|
||||
logger.warn("[AutoLeave] 24/7 rejoin failed for", homeChannelId, e.message)
|
||||
);
|
||||
}, delay);
|
||||
|
||||
Reference in new issue
Block a user