Browse Source

Only request identify ticket when needed

pull/1537/head
Paulo 4 years ago
parent
commit
42cf7ace4f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 2
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -228,7 +228,8 @@ namespace Discord.WebSocket

private async Task OnConnectingAsync()
{
await ApiClient.RequestQueue.AcquireIdentifyTicket(_connection.CancelToken);
if (_sessionId == null)
await ApiClient.RequestQueue.AcquireIdentifyTicket(_connection.CancelToken);

await _gatewayLogger.DebugAsync("Connecting ApiClient").ConfigureAwait(false);
await ApiClient.ConnectAsync().ConfigureAwait(false);


Loading…
Cancel
Save