mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
apply same fix to MQTT-out node
This commit is contained in:
parent
cb0bc9a2de
commit
a392a97bdc
@ -1297,9 +1297,9 @@ module.exports = function(RED) {
|
||||
node.status({fill:"green",shape:"dot",text:"node-red:common.status.connected"});
|
||||
}
|
||||
node.brokerConn.register(node);
|
||||
node.on('close', function(done) {
|
||||
node.on('close', function(removed, done) {
|
||||
if (node.brokerConn) {
|
||||
node.brokerConn.deregister(node,done);
|
||||
node.brokerConn.deregister(node, done, removed)
|
||||
node.brokerConn = null;
|
||||
} else {
|
||||
done();
|
||||
|
Loading…
x
Reference in New Issue
Block a user