StopAsync now waits until the managed client is stoped and more typical disposing of internal client

This commit is contained in:
vbBerni
2019-02-16 22:23:45 +01:00
parent de3a39bdc2
commit 2a4eb460da
3 changed files with 86 additions and 15 deletions
+2 -2
View File
@@ -66,9 +66,9 @@ namespace MQTTnet.Tests
}
finally
{
MqttNetGlobalLogger.LogMessagePublished -= globalLog;
await managedClient.StopAsync();
MqttNetGlobalLogger.LogMessagePublished -= globalLog;
}
Assert.IsFalse(invalidLogIdOccured);