Set _heartbeatTime before sending a heartbeat
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user