testing this for a day if its bad i just wast my time

This commit is contained in:
NoLogicAlan committed 2026-10-05 03:29:05 +03:00
1 parent fd58343ce9
commit 656cbfe149
33 files changed
+726 -102

No files matched your search

+6 -2
View File
@@ -129,10 +129,14 @@ const RejoinManager = {
try {
const player = await this._attemptRejoin(cleanChannelId, cleanGuildId, maxRetries, 5_000, "Rejoin");
this._rejoinAttempts.delete(cleanChannelId);
if (player) {
this._rejoinAttempts.delete(cleanChannelId);
remix.rejoinBackoff?.recordSuccess(cleanChannelId);
} else {
this._rejoinAttempts.delete(cleanChannelId);
const { failures, delayMs } = remix.rejoinBackoff?.recordFailure(cleanChannelId) ?? {};
if (failures) {
logger.warn(`[Rejoin] Channel ${cleanChannelId} failed ${failures} attempt cycle(s) in a row; the watchdog will wait ${Math.round(delayMs / 60_000)} min before retrying (missing Connect permission or a full channel?).`);
}
}
return player;
} finally {