mirror of https://github.com/node-red/node-red.git
Fix hang on partial deploy with disconnected mqtt node
parent
4bc482bc85
commit
627a80419a
|
@ -143,8 +143,11 @@ module.exports = function(RED) {
|
|||
return done();
|
||||
}
|
||||
if (Object.keys(node.users).length === 0) {
|
||||
if (node.client) {
|
||||
if (node.client && node.client.connected) {
|
||||
return node.client.end(done);
|
||||
} else {
|
||||
node.client.end();
|
||||
done();
|
||||
}
|
||||
}
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue