Pārlūkot izejas kodu

use configure await

release/3.x.x
JanEggers pirms 7 gadiem
vecāks
revīzija
5e417affa5
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt