Skip to content

Commit bb9afc9

Browse files
committed
fix will properties
1 parent 33243c5 commit bb9afc9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ mqtt-packet is only possible due to the excellent work of the following contribu
482482
<tr><th align="left">Matteo Collina</th><td><a href="https://github.com/mcollina">GitHub/mcollina</a></td><td><a href="http://twitter.com/matteocollina">Twitter/@matteocollina</a></td></tr>
483483
<tr><th align="left">Adam Rudd</th><td><a href="https://github.com/adamvr">GitHub/adamvr</a></td><td><a href="http://twitter.com/adam_vr">Twitter/@adam_vr</a></td></tr>
484484
<tr><th align="left">Peter Sorowka</th><td><a href="https://github.com/psorowka">GitHub/psorowka</a></td><td><a href="http://twitter.com/psorowka">Twitter/@psorowka</a></td></tr>
485+
<tr><th align="left">Siarhei Buntsevich</th><td><a href="https://github.com/scarry1992">GitHub/scarry1992</a></td></tr>
485486
</tbody></table>
486487
487488
License

writeToStream.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,12 @@ function connect (packet, stream, opts) {
171171
stream.emit('error', new Error('Invalid will payload'))
172172
return false
173173
}
174-
175-
// will properties
176-
var willProperties = {}
177-
if (protocolVersion === 5) {
178-
willProperties = getProperties(stream, will.properties)
179-
length += willProperties.length
180-
}
174+
}
175+
// will properties
176+
var willProperties = {}
177+
if (protocolVersion === 5) {
178+
willProperties = getProperties(stream, will.properties)
179+
length += willProperties.length
181180
}
182181
}
183182

0 commit comments

Comments
 (0)