From 463c0235c0bc0409010726207feb2cc5c568c559 Mon Sep 17 00:00:00 2001 From: Jan Willem Penterman Date: Wed, 8 Jun 2022 10:57:55 +0100 Subject: [PATCH] Fix _storeProcessing staying true after outStore got emptied --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 447385947..d9623202a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1806,7 +1806,6 @@ MqttClient.prototype._onConnect = function (packet) { if (!outStore) { return } - that._storeProcessing = true const packet = outStore.read(1) @@ -1818,6 +1817,8 @@ MqttClient.prototype._onConnect = function (packet) { return } + that._storeProcessing = true + // Skip already processed store packets if (that._packetIdsDuringStoreProcessing[packet.messageId]) { storeDeliver()