mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 19:08:17 +00:00
fix: use last shard id not maxShards
This commit is contained in:
@@ -88,7 +88,7 @@ export async function resharderIsPending(
|
||||
gateway: GatewayManager,
|
||||
oldGateway: GatewayManager,
|
||||
) {
|
||||
for (let i = gateway.firstShardId; i < gateway.maxShards; i++) {
|
||||
for (let i = gateway.firstShardId; i < gateway.lastShardId; i++) {
|
||||
const shard = gateway.shards.get(i);
|
||||
if (!shard?.ready) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user