Fix validation of topic in managed client (#1567)

This commit is contained in:
Christian
2022-11-09 20:13:59 +01:00
committed by GitHub
parent 5ee0bb4b65
commit 56f0a2c31c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
* [Core] Fixed several dead locks by implementing a new async signal (#1552)
* [Client] All waiting tasks will now fail when the client connection gets closed. This fixes several freezes (#1561)
* [ManagedClient] The topic is no longer declared as invalid if a topic alias is used (#1395).
* [Server] Fixed duplicated invocation of the event _ClientAcknowledgedPublishPacketAsync_ for QoS level 2 (#1550)
* [Server] Fixed issue in upgrading and downgrading of QoS levels for subscriptions and retained messages (#1560)
* [Server] Fixed memory leak when old sessions are discarded (#1553)
* [Server] Fixed memory leak when old sessions are discarded (#1553)
@@ -160,7 +160,7 @@ namespace MQTTnet.Extensions.ManagedClient
throw new InvalidOperationException("call StartAsync before publishing messages");
}
MqttTopicValidator.ThrowIfInvalid(applicationMessage.ApplicationMessage.Topic);
MqttTopicValidator.ThrowIfInvalid(applicationMessage.ApplicationMessage);
ManagedMqttApplicationMessage removedMessage = null;
ApplicationMessageSkippedEventArgs applicationMessageSkippedEventArgs = null;