Skip to content

Commit

Permalink
clone msgs before handing over to callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Feb 5, 2019
1 parent 4a6feed commit f036018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/ccu-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ module.exports = function (RED) {
}
if (match) {
//this.logger.trace('callCallback ' + id + ' ' + msg.datapointName + ' ' + msg.value);
callback(msg);
callback(RED.util.cloneMessage(msg));
this.callbackWhitelists[msg.datapointName].add(id);
} else {
//this.logger.trace('add to blacklist ' + id + ' ' + msg.datapointName);
Expand Down

0 comments on commit f036018

Please sign in to comment.