Skip to content

Commit 6c41888

Browse files
authored
Repair MQTTClient.v5.unsubscribe to use properties arg (#149)
1 parent 8dd684d commit 6c41888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MQTTNIO/MQTTClientV5.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ extension MQTTClient {
155155
properties: MQTTProperties = .init()
156156
) -> EventLoopFuture<MQTTSubackV5> {
157157
let packetId = self.client.updatePacketId()
158-
let packet = MQTTUnsubscribePacket(subscriptions: subscriptions, properties: .init(), packetId: packetId)
158+
let packet = MQTTUnsubscribePacket(subscriptions: subscriptions, properties: properties, packetId: packetId)
159159
return self.client.unsubscribe(packet: packet)
160160
.map { message in
161161
return MQTTSubackV5(reasons: message.reasons, properties: message.properties)

0 commit comments

Comments
 (0)