Skip to content

Commit f3f7be7

Browse files
Genoiljanwillem-pentermanrobertsLando
authored
fix: _storeProcessing staying true after outStore got emptied (#1492)
Co-authored-by: Jan Willem Penterman <[email protected]> Co-authored-by: Daniel Lando <[email protected]>
1 parent 8d68c8c commit f3f7be7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,6 @@ MqttClient.prototype._onConnect = function (packet) {
18171817
if (!outStore) {
18181818
return
18191819
}
1820-
that._storeProcessing = true
18211820

18221821
const packet = outStore.read(1)
18231822

@@ -1829,6 +1828,8 @@ MqttClient.prototype._onConnect = function (packet) {
18291828
return
18301829
}
18311830

1831+
that._storeProcessing = true
1832+
18321833
// Skip already processed store packets
18331834
if (that._packetIdsDuringStoreProcessing[packet.messageId]) {
18341835
storeDeliver()

0 commit comments

Comments
 (0)