mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix(gateway, player): resolve zombie gateway hangs and playback race conditions
- Gateway & Connection Recovery: - Handle opcodes 7 (Reconnect) and 9 (InvalidSession) by terminating sockets and clearing session state for clean re-IDENTIFY - Restrict gateway heartbeat updates strictly to genuine Dispatch (op 0) and Heartbeat ACK (op 11) - Trigger proactive shard reconnect immediately on raw WebSocket close events - Tighten gateway watchdog intervals and add a 5s hard-kill timeout on gracefulShutdown to prevent process deadlocks - Allow child bot processes to control the Docker container healthcheck file - Bind shard lifecycle events (shardDisconnect, shardResume, shardReady) - Player & Audio Pipeline: - Add play session generation guarding (_playSessionGen) in PlaybackMixin and Player._bridgeStop to prevent asynchronous race conditions and rapid queue skip-loops - De-escalate Lavalink loadtracks resolution fallbacks from logger.warn to logger.player to avoid false-alarm telemetry embeds - Extract detailed Lavalink error reasons in AudioBridge console logs - Command Routing: - Add guildId and guild getters on Message wrapper and expand CommandHandler guildId extraction
This commit is contained in:
1 parent
36ad89b1d2
commit
aa56d98809
3 files changed
+15
-4
No files matched your search
@@ -1068,6 +1068,7 @@ class Player extends EventEmitter {
|
||||
|
||||
/** @private Stop the audio bridge if currently playing. */
|
||||
_bridgeStop() {
|
||||
this._playSessionGen = (this._playSessionGen ?? 0) + 1;
|
||||
if (this._audioBridge) {
|
||||
try { this._audioBridge.stop(); } catch (_) {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user