Browse Source

Actually batch, not just offset...

pull/44/head
RogueException 9 years ago
parent
commit
b7edf48a19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordClient.cs

+ 1
- 1
src/Discord.Net/DiscordClient.cs View File

@@ -528,7 +528,7 @@ namespace Discord
{
int batches = (largeServers.Count + (DiscordConfig.ServerBatchCount - 1)) / DiscordConfig.ServerBatchCount;
for (int i = 0; i < batches; i++)
GatewaySocket.SendRequestMembers(largeServers.Skip(i * DiscordConfig.ServerBatchCount), "", 0);
GatewaySocket.SendRequestMembers(largeServers.Skip(i * DiscordConfig.ServerBatchCount).Take(DiscordConfig.ServerBatchCount), "", 0);
}
else
EndConnect();


Loading…
Cancel
Save