Skip to content

Commit

Permalink
DefaultWebSocketClient's internal methods should not use a canceltoke…
Browse files Browse the repository at this point in the history
…n on locks
  • Loading branch information
Auralytical committed Aug 17, 2016
1 parent 0b25554 commit ee4cc96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Discord.Net/Net/WebSockets/DefaultWebsocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void Dispose()

public async Task ConnectAsync(string host)
{
await _sendLock.WaitAsync(_cancelToken).ConfigureAwait(false);
await _sendLock.WaitAsync().ConfigureAwait(false);
try
{
await ConnectInternalAsync(host);
Expand Down Expand Up @@ -83,7 +83,7 @@ private async Task ConnectInternalAsync(string host)

public async Task DisconnectAsync()
{
await _sendLock.WaitAsync(_cancelToken).ConfigureAwait(false);
await _sendLock.WaitAsync().ConfigureAwait(false);
try
{
await DisconnectInternalAsync();
Expand Down Expand Up @@ -118,7 +118,7 @@ public void SetCancelToken(CancellationToken cancelToken)

public async Task SendAsync(byte[] data, int index, int count, bool isText)
{
await _sendLock.WaitAsync(_cancelToken).ConfigureAwait(false);
await _sendLock.WaitAsync().ConfigureAwait(false);
try
{
if (_client == null) return;
Expand Down

0 comments on commit ee4cc96

Please sign in to comment.