hotfix/added restore queue/added some good stuff to/removing some stuff to

This commit is contained in:
NoLogicAlan committed 2026-09-16 02:02:29 +03:00
1 parent ca98dc11aa
commit 8a8925653c
17 files changed
+429 -22

No files matched your search

+5
View File
@@ -101,6 +101,11 @@ process.on("uncaughtExceptionMonitor", (err, origin) => {
*/
const saveAndExit = async () => {
logger.recovery("\n[Shutdown] Cleaning up before exit...");
try {
await remix.playerState?.saveAllFrom?.(remix.players);
} catch (e) {
logger.warn("[Shutdown] Player state save failed:", e?.message);
}
try {
if (remix.players?.playerMap) {
for (const [channelId, player] of remix.players.playerMap) {