Browse Source

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

pull/6/head
RogueException 9 years ago
parent
commit
90bb365da8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/WebSockets/Voice/VoiceBuffer.cs

+ 1
- 1
src/Discord.Net/WebSockets/Voice/VoiceBuffer.cs View File

@@ -50,7 +50,7 @@ namespace Discord.WebSockets.Voice
{ {
_notOverflowEvent.Wait(cancelToken); _notOverflowEvent.Wait(cancelToken);
} }
catch (OperationCanceledException) { return; }
catch (OperationCanceledException) { throw new InvalidOperationException("Client is not connected."); }
} }


if (i == wholeFrames) if (i == wholeFrames)


Loading…
Cancel
Save