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();
|
||||
} else {
|
||||
const t = setTimeout(reject, ms);
|
||||
client.end(() => {
|
||||
client.end(true, () => {
|
||||
clearTimeout(t);
|
||||
resolve()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user