From 5e417affa53ba8b054b2b43ea4ef31be4385860c Mon Sep 17 00:00:00 2001 From: JanEggers Date: Sat, 9 Sep 2017 02:06:17 +0200 Subject: [PATCH] use configure await --- .../MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs | 2 +- .../MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs b/Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs index bb17ee3..54a4ce6 100644 --- a/Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs +++ b/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) { diff --git a/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs b/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs index 068f36c..e7820a3 100644 --- a/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs +++ b/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) {