Throw exception if data is pushed after a voice client disconnected.

This commit is contained in:
RogueException
2015-10-18 18:05:26 -03:00
parent 6e9d6a9b6c
commit 90bb365da8

View File

@@ -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)