diff --git a/src/Discord.Net/Net/WebSockets/VoiceWebSocket.cs b/src/Discord.Net/Net/WebSockets/VoiceWebSocket.cs index 78ee27271..aea264c6c 100644 --- a/src/Discord.Net/Net/WebSockets/VoiceWebSocket.cs +++ b/src/Discord.Net/Net/WebSockets/VoiceWebSocket.cs @@ -90,7 +90,9 @@ namespace Discord.Net.WebSockets { try { - await Start().ConfigureAwait(false); + //This check is needed in case we start a reconnect before the initial login completes + if (_state != (int)WebSocketState.Disconnected) + await Start().ConfigureAwait(false); break; } catch (OperationCanceledException) { throw; } @@ -533,7 +535,7 @@ namespace Discord.Net.WebSockets protected override object GetKeepAlive() { - return new KeepAliveCommand(); + return new VoiceKeepAliveCommand(); } public void WaitForQueue()