|
@@ -62,7 +62,7 @@ namespace MQTTnet.AspNetCore |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
readResult = await readTask; |
|
|
|
|
|
|
|
|
readResult = await readTask.ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var buffer = readResult.Buffer; |
|
|
var buffer = readResult.Buffer; |
|
@@ -115,7 +115,7 @@ namespace MQTTnet.AspNetCore |
|
|
await _writerSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); |
|
|
await _writerSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
await output.WriteAsync(buffer, cancellationToken); |
|
|
|
|
|
|
|
|
await output.WriteAsync(buffer, cancellationToken).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
finally |
|
|
finally |
|
|
{ |
|
|
{ |
|
|