Sfoglia il codice sorgente

use configure await

release/3.x.x
JanEggers 7 anni fa
parent
commit
5e417affa5
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 Vedi File

@@ -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 Vedi File

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


Caricamento…
Annulla
Salva