diff --git a/Sources/MQTTNIO/MQTTClientV5.swift b/Sources/MQTTNIO/MQTTClientV5.swift index 317116c3..dc40b9fe 100644 --- a/Sources/MQTTNIO/MQTTClientV5.swift +++ b/Sources/MQTTNIO/MQTTClientV5.swift @@ -155,7 +155,7 @@ extension MQTTClient { properties: MQTTProperties = .init() ) -> EventLoopFuture { let packetId = self.client.updatePacketId() - let packet = MQTTUnsubscribePacket(subscriptions: subscriptions, properties: .init(), packetId: packetId) + let packet = MQTTUnsubscribePacket(subscriptions: subscriptions, properties: properties, packetId: packetId) return self.client.unsubscribe(packet: packet) .map { message in return MQTTSubackV5(reasons: message.reasons, properties: message.properties)