浏览代码

Follow-Up: Add missing ConfigureAwait() call.

release/3.x.x
kpreisser 6 年前
父节点
当前提交
bb697e1bd9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Frameworks/MQTTnet.NetStandard/Adapter/MqttChannelAdapter.cs

+ 1
- 1
Frameworks/MQTTnet.NetStandard/Adapter/MqttChannelAdapter.cs 查看文件

@@ -120,7 +120,7 @@ namespace MQTTnet.Adapter

private static async Task<ReceivedMqttPacket> ReceiveAsync(Stream stream, CancellationToken cancellationToken)
{
var header = await MqttPacketReader.ReadHeaderFromSourceAsync(stream, cancellationToken);
var header = await MqttPacketReader.ReadHeaderFromSourceAsync(stream, cancellationToken).ConfigureAwait(false);
if (header == null)
{
return null;


正在加载...
取消
保存