瀏覽代碼

use configure await

release/3.x.x
JanEggers 7 年之前
父節點
當前提交
5e417affa5
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs
  2. +1
    -1
      Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs

+ 1
- 1
Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs 查看文件

@@ -102,7 +102,7 @@ namespace MQTTnet.Implementations

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)
{


+ 1
- 1
Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs 查看文件

@@ -101,7 +101,7 @@ namespace MQTTnet.Implementations

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)
{


Loading…
取消
儲存