Skip to content

Commit

Permalink
Cancellation token testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Aug 24, 2023
1 parent bdbeb0e commit 46897b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NexNet/Internals/NexusSession.Sending.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async ValueTask SendMessage<TMessage>(TMessage body, CancellationToken ca

Logger?.LogTrace($"Sending {TMessage.Type} header and body with {length} total bytes.");

var result = await _pipeOutput.FlushAsync(cancellationToken).ConfigureAwait(false);
var result = await _pipeOutput.FlushAsync().ConfigureAwait(false);

OnSent?.Invoke();

Expand Down Expand Up @@ -135,7 +135,7 @@ public async ValueTask SendHeaderWithBody(MessageType type, ReadOnlyMemory<byte>
FlushResult result = default;
try
{
result = await _pipeOutput.FlushAsync(cancellationToken).ConfigureAwait(false);
result = await _pipeOutput.FlushAsync().ConfigureAwait(false);
}
catch (ObjectDisposedException)
{
Expand Down Expand Up @@ -205,7 +205,7 @@ private async ValueTask SendHeaderCore(MessageType type, bool force, Cancellatio
FlushResult result = default;
try
{
result = await _pipeOutput.FlushAsync(cancellationToken).ConfigureAwait(false);
result = await _pipeOutput.FlushAsync().ConfigureAwait(false);
}
catch (ObjectDisposedException)
{
Expand Down

0 comments on commit 46897b1

Please sign in to comment.