Throw exception if data is pushed after a voice client disconnected.
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Discord.WebSockets.Voice
|
||||
{
|
||||
_notOverflowEvent.Wait(cancelToken);
|
||||
}
|
||||
catch (OperationCanceledException) { return; }
|
||||
catch (OperationCanceledException) { throw new InvalidOperationException("Client is not connected."); }
|
||||
}
|
||||
|
||||
if (i == wholeFrames)
|
||||
|
||||
Reference in New Issue
Block a user