Skip to content

Commit

Permalink
Merge 496f7b7 into d4aed3b
Browse files Browse the repository at this point in the history
  • Loading branch information
Aietes committed Aug 20, 2018
2 parents d4aed3b + 496f7b7 commit 1958e30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homegear-mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ module.exports = function(RED) {
});
}

this.on('close', function() {
this.on('close', function (done) {
if(node.brokerConn) {
node.brokerConn.unsubscribe(node.evenTopic,node.id);
node.brokerConn.unsubscribe(node.rpcTopic,node.id);
node.brokerConn.deregister(node);
node.brokerConn.deregister(node, done);
}
});
}
Expand Down Expand Up @@ -205,10 +205,10 @@ module.exports = function(RED) {
}
});

this.on('close', function() {
this.on('close', function (done) {
if(node.brokerConn) {
node.brokerConn.unsubscribe(node.rpcTopic,node.id);
node.brokerConn.deregister(node);
node.brokerConn.deregister(node, done);
}
});
}
Expand Down

0 comments on commit 1958e30

Please sign in to comment.