Browse Source

use configure await

release/3.x.x
JanEggers 7 years ago
parent
commit
5e417affa5
2 changed files with 2 additions and 2 deletions
  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 View File

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


+ 1
- 1
Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs View File

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


Loading…
Cancel
Save