Skip to content

Commit

Permalink
Repair MQTTClient.v5.unsubscribe to use properties arg (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgrayson authored Nov 22, 2023
1 parent 8dd684d commit 6c41888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MQTTNIO/MQTTClientV5.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ extension MQTTClient {
properties: MQTTProperties = .init()
) -> EventLoopFuture<MQTTSubackV5> {
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)
Expand Down

0 comments on commit 6c41888

Please sign in to comment.