From 3baedb1862ebd350d5e76f0a4fae914cf2eeeddb Mon Sep 17 00:00:00 2001 From: RogueException Date: Mon, 12 Oct 2015 00:37:09 -0300 Subject: [PATCH] Set UDP receive thread to background --- src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs b/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs index b3777801c..f05b70e40 100644 --- a/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs +++ b/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs @@ -134,12 +134,12 @@ namespace Discord.WebSockets.Voice #endif } - //This thread is required to establish a connection even if we're outgoing only #if USE_THREAD + //This thread is required to establish a connection even if we're outgoing only if ((_client.Config.VoiceMode & DiscordVoiceMode.Incoming) != 0) { _receiveThread = new Thread(new ThreadStart(() => ReceiveVoiceAsync(_cancelToken))); - _sendThread.IsBackground = true; + _receiveThread.IsBackground = true; _receiveThread.Start(); } else //Dont make an OS thread if we only want to capture one packet...