Skip to content

Commit

Permalink
Non-Zero MessageId when QoS > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Jul 11, 2019
1 parent c0d5bd5 commit 34695fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qos-packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function QoSPacket (original, client) {
if (!original.messageId) {
this.messageId = client._nextId
if (client._nextId === 65535) {
client._nextId = 0
client._nextId = 1
} else {
client._nextId++
}
Expand Down

0 comments on commit 34695fb

Please sign in to comment.