Browse Source

Set _heartbeatTime before sending a heartbeat

tags/1.0-rc
RogueException 9 years ago
parent
commit
de4393839d
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

@@ -1566,11 +1566,11 @@ namespace Discord.WebSocket
return; return;
} }
} }
_heartbeatTime = Environment.TickCount;


try try
{ {
await ApiClient.SendHeartbeatAsync(_lastSeq).ConfigureAwait(false); await ApiClient.SendHeartbeatAsync(_lastSeq).ConfigureAwait(false);
_heartbeatTime = Environment.TickCount;
} }
catch (Exception ex) catch (Exception ex)
{ {


Loading…
Cancel
Save