Fixed WebSocket QueueMessage

This commit is contained in:
RogueException
2015-09-15 04:58:19 -03:00
parent 024ef7d1de
commit 9360ae7b49

View File

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