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