mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 04:03:05 +08:00
use configure await
This commit is contained in:
@@ -102,7 +102,7 @@ namespace MQTTnet.Implementations
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
var read = await _dataStream.ReadAsync(buffer, totalBytes, buffer.Length - totalBytes);
|
var read = await _dataStream.ReadAsync(buffer, totalBytes, buffer.Length - totalBytes).ConfigureAwait(false);
|
||||||
|
|
||||||
if (read == 0)
|
if (read == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ namespace MQTTnet.Implementations
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
var read = await _dataStream.ReadAsync(buffer, totalBytes, buffer.Length - totalBytes);
|
var read = await _dataStream.ReadAsync(buffer, totalBytes, buffer.Length - totalBytes).ConfigureAwait(false);
|
||||||
|
|
||||||
if (read == 0)
|
if (read == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user