Skip adding default message expiry interval.

This commit is contained in:
Christian
2022-06-09 21:23:34 +02:00
parent ae8e2ec7c9
commit b75076a1c5
@@ -84,6 +84,11 @@ namespace MQTTnet.Formatter.V5
{
// If absent, the Application Message does not expire.
// This library uses 0 to indicate no expiration.
if (value == 0)
{
return;
}
WriteAsFourByteInteger(MqttPropertyId.MessageExpiryInterval, value);
}