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:
parent
963c289af7
commit
b2ec040a8d
@ -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()
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user