Code cleanup

This commit is contained in:
Christian
2023-01-28 13:08:21 +01:00
parent e01707d25e
commit ed31c51237
3 changed files with 46 additions and 72 deletions
@@ -407,13 +407,13 @@ namespace MQTTnet.Server
{
// This is a MQTT V5+ feature.
return;
}
}
if (createSubscriptionResult.Subscription.RetainHandling == MqttRetainHandling.SendAtSubscribeIfNewSubscriptionOnly && !createSubscriptionResult.IsNewSubscription)
{
// This is a MQTT V5+ feature.
{
// This is a MQTT V5+ feature.
return;
}
}
for (var index = retainedMessages.Count - 1; index >= 0; index--)
{