mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
refactor: don't log about resuming in shard.handleClose (#4187)
This commit is contained in:
@@ -458,7 +458,7 @@ export class DiscordenoShard {
|
||||
this.state = ShardState.Disconnected
|
||||
this.events.disconnected?.(this)
|
||||
|
||||
this.goingOffline = false
|
||||
this.goingOffline = false
|
||||
|
||||
return
|
||||
}
|
||||
@@ -472,7 +472,6 @@ export class DiscordenoShard {
|
||||
case GatewayCloseEventCodes.RateLimited:
|
||||
case GatewayCloseEventCodes.AlreadyAuthenticated:
|
||||
default: {
|
||||
this.logger.info(`[Shard] Shard #${this.id} closed with code ${close.code}. Attempting to resume...`)
|
||||
// We don't want to get into an infinite loop where we resume forever, so if we were already resuming we identify instead
|
||||
this.state = this.state === ShardState.Resuming ? ShardState.Identifying : ShardState.Resuming
|
||||
this.events.disconnected?.(this)
|
||||
|
||||
Reference in New Issue
Block a user