Browse Source

Fixed WebSocket QueueMessage

tags/docs-0.9
RogueException 9 years ago
parent
commit
9360ae7b49
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs

+ 1
- 1
src/Discord.Net/Net/WebSockets/WebSocket.BuiltIn.cs View File

@@ -111,7 +111,7 @@ namespace Discord.Net.WebSockets
while (_webSocket.State == State.Open && !cancelToken.IsCancellationRequested) while (_webSocket.State == State.Open && !cancelToken.IsCancellationRequested)
{ {
while (_sendQueue.TryDequeue(out bytes)) while (_sendQueue.TryDequeue(out bytes))
QueueMessage(bytes);
await SendMessageInternal(bytes, cancelToken);
await Task.Delay(_sendInterval, cancelToken).ConfigureAwait(false); await Task.Delay(_sendInterval, cancelToken).ConfigureAwait(false);
} }
} }


Loading…
Cancel
Save