mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
rollback
This commit is contained in:
1 parent
2f51b7e1d7
commit
97fe282bb3
29 files changed
+101
-431
No files matched your search
@@ -129,14 +129,10 @@ const RejoinManager = {
|
||||
|
||||
try {
|
||||
const player = await this._attemptRejoin(cleanChannelId, cleanGuildId, maxRetries, 5_000, "Rejoin");
|
||||
this._rejoinAttempts.delete(cleanChannelId);
|
||||
if (player) {
|
||||
remix.rejoinBackoff?.recordSuccess(cleanChannelId);
|
||||
this._rejoinAttempts.delete(cleanChannelId);
|
||||
} else {
|
||||
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?).`);
|
||||
}
|
||||
this._rejoinAttempts.delete(cleanChannelId);
|
||||
}
|
||||
return player;
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user