Solved 4003 Authentication Error (Race Condition) (#1093)
* Solved 4003 Authentication Error (Race Condition) * Set static interval & removed hello case
This commit is contained in:
committed by
Christopher F
parent
aff4512fcd
commit
322d46e47b
@@ -216,14 +216,6 @@ namespace Discord.Audio
|
|||||||
{
|
{
|
||||||
switch (opCode)
|
switch (opCode)
|
||||||
{
|
{
|
||||||
case VoiceOpCode.Hello:
|
|
||||||
{
|
|
||||||
await _audioLogger.DebugAsync("Received Hello").ConfigureAwait(false);
|
|
||||||
var data = (payload as JToken).ToObject<HelloEvent>(_serializer);
|
|
||||||
|
|
||||||
_heartbeatTask = RunHeartbeatAsync(data.HeartbeatInterval, _connection.CancelToken);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case VoiceOpCode.Ready:
|
case VoiceOpCode.Ready:
|
||||||
{
|
{
|
||||||
await _audioLogger.DebugAsync("Received Ready").ConfigureAwait(false);
|
await _audioLogger.DebugAsync("Received Ready").ConfigureAwait(false);
|
||||||
@@ -236,6 +228,9 @@ namespace Discord.Audio
|
|||||||
|
|
||||||
ApiClient.SetUdpEndpoint(data.Ip, data.Port);
|
ApiClient.SetUdpEndpoint(data.Ip, data.Port);
|
||||||
await ApiClient.SendDiscoveryAsync(_ssrc).ConfigureAwait(false);
|
await ApiClient.SendDiscoveryAsync(_ssrc).ConfigureAwait(false);
|
||||||
|
|
||||||
|
|
||||||
|
_heartbeatTask = RunHeartbeatAsync(41250, _connection.CancelToken);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VoiceOpCode.SessionDescription:
|
case VoiceOpCode.SessionDescription:
|
||||||
|
|||||||
Reference in New Issue
Block a user