Set _heartbeatTime before sending a heartbeat

This commit is contained in:
RogueException
2016-08-25 21:55:12 -03:00
parent 52d536fe6a
commit de4393839d

View File

@@ -1566,11 +1566,11 @@ namespace Discord.WebSocket
return;
}
}
_heartbeatTime = Environment.TickCount;
try
{
await ApiClient.SendHeartbeatAsync(_lastSeq).ConfigureAwait(false);
_heartbeatTime = Environment.TickCount;
}
catch (Exception ex)
{