1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add Force parameter mqtt client.end() when called in disconnect

This commit is contained in:
Phil Day 2022-05-05 16:12:28 +01:00
parent 963c289af7
commit b2ec040a8d

View File

@ -837,7 +837,7 @@ module.exports = function(RED) {
resolve(); resolve();
} else { } else {
const t = setTimeout(reject, ms); const t = setTimeout(reject, ms);
client.end(() => { client.end(true, () => {
clearTimeout(t); clearTimeout(t);
resolve() resolve()
}); });