mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
dashboard works
This commit is contained in:
1 parent
777c610b55
commit
009ec31dd8
5 files changed
+129
-35
No files matched your search
@@ -660,6 +660,16 @@ export class RecoveryManager {
|
||||
`(${ok} ok, ${errors.length} failed).`
|
||||
);
|
||||
|
||||
// Re-announce readiness to the backend so it can re-initialize
|
||||
// PlayerManager with the recovered players. Without this, the backend
|
||||
// may have missed the "init" events published during recovery if its
|
||||
// subscriber wasn't ready yet, or it may have initialized with empty
|
||||
// data because the bot hadn't recovered sessions at the time.
|
||||
if (ok > 0 && remix.dashboard?.announceReady) {
|
||||
logger.recovery("[Recovery] Re-announcing bot readiness to backend...");
|
||||
remix.dashboard.announceReady();
|
||||
}
|
||||
|
||||
// Delete recovery file AFTER all spawns have been attempted (success or fail).
|
||||
// If the process crashes mid-recovery, the file still exists for next boot.
|
||||
if (recoveryFileExisted) {
|
||||
|
||||
Reference in new issue
Block a user