Browse Source

Fixed heartbeat forcing unnecessary reconnects

tags/1.0-rc
RogueException 9 years ago
parent
commit
a346847826
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net/DiscordSocketClient.cs

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

@@ -420,6 +420,7 @@ namespace Discord
await _gatewayLogger.DebugAsync("Received HeartbeatAck").ConfigureAwait(false);

var latency = (int)(Environment.TickCount - _heartbeatTime);
_heartbeatTime = 0;
await _gatewayLogger.DebugAsync($"Latency = {latency} ms").ConfigureAwait(false);
Latency = latency;



Loading…
Cancel
Save