fixed missing waits

This commit is contained in:
JanEggers
2018-07-19 21:13:29 +02:00
parent f7ea2d29e1
commit d30fe61264
+2 -5
View File
@@ -229,11 +229,8 @@ namespace MQTTnet.Client
try
{
if (clientWasConnected)
{
await WaitForTaskAsync(_packetReceiverTask, sender).ConfigureAwait(false);
await WaitForTaskAsync(_keepAliveMessageSenderTask, sender).ConfigureAwait(false);
}
await WaitForTaskAsync(_packetReceiverTask, sender).ConfigureAwait(false);
await WaitForTaskAsync(_keepAliveMessageSenderTask, sender).ConfigureAwait(false);
if (_adapter != null)
{