From afdc9cff6153ceaefefc4798f9c9c6211802ba18 Mon Sep 17 00:00:00 2001 From: Casino Boyale Date: Sun, 29 Sep 2019 11:44:39 +0100 Subject: [PATCH] Fixed logic --- src/Discord.Net.WebSocket/DiscordShardedClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.WebSocket/DiscordShardedClient.cs b/src/Discord.Net.WebSocket/DiscordShardedClient.cs index 77970ba8f..d7f26a30c 100644 --- a/src/Discord.Net.WebSocket/DiscordShardedClient.cs +++ b/src/Discord.Net.WebSocket/DiscordShardedClient.cs @@ -294,7 +294,7 @@ namespace Discord.WebSocket client.Ready += async () => { CurrentUser = client.CurrentUser; - if (_totalShards >= _shardsReady++) //to account for re-identifies, don't see a better way to handle this + if (_shardsReady++ >= _totalShards) //to account for re-identifies, don't see a better way to handle this { await _readyEvent.InvokeAsync(); } @@ -306,7 +306,7 @@ namespace Discord.WebSocket client.Ready += async () => { await _shardReadyEvent.InvokeAsync(client); - if (_totalShards >= _shardsReady++) //to account for re-identifies, don't see a better way to handle this + if (_shardsReady++ >= _totalShards) //to account for re-identifies, don't see a better way to handle this { await _readyEvent.InvokeAsync(); }