mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-29 18:02:48 +08:00
StopAsync now waits until the managed client is stoped and more typical disposing of internal client
This commit is contained in:
@@ -66,9 +66,9 @@ namespace MQTTnet.Tests
|
||||
}
|
||||
finally
|
||||
{
|
||||
MqttNetGlobalLogger.LogMessagePublished -= globalLog;
|
||||
|
||||
await managedClient.StopAsync();
|
||||
|
||||
MqttNetGlobalLogger.LogMessagePublished -= globalLog;
|
||||
}
|
||||
|
||||
Assert.IsFalse(invalidLogIdOccured);
|
||||
|
||||
Reference in New Issue
Block a user