Browse Source

Minor Fix

pull/1201/head
ComputerMaster1st 6 years ago
parent
commit
5a6b8977f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

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

@@ -252,7 +252,7 @@ namespace Discord.WebSocket
_heartbeatTask = null;

// Check if hearbeatTimes is not empty before dequeuing. TryDequeue can cause blocking.
if (!_heartbeatTimes.IsEmpty) while (_heartbeatTimes.TryDequeue(out long time)) { }
if (!_heartbeatTimes.IsEmpty) while (_heartbeatTimes.TryDequeue(out _)) { }
_lastMessageTime = 0;

await _gatewayLogger.DebugAsync("Waiting for guild downloader").ConfigureAwait(false);


Loading…
Cancel
Save