Only join threads if they were made in the first place
This commit is contained in:
@@ -167,7 +167,9 @@ namespace Discord.WebSockets.Voice
|
|||||||
protected override Task Cleanup()
|
protected override Task Cleanup()
|
||||||
{
|
{
|
||||||
#if USE_THREAD
|
#if USE_THREAD
|
||||||
|
if (_sendThread != null)
|
||||||
_sendThread.Join();
|
_sendThread.Join();
|
||||||
|
if (_receiveThread != null)
|
||||||
_receiveThread.Join();
|
_receiveThread.Join();
|
||||||
_sendThread = null;
|
_sendThread = null;
|
||||||
_receiveThread = null;
|
_receiveThread = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user