1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure send is last thing trigger does

This commit is contained in:
Dave Conway-Jones 2018-02-04 21:25:25 +00:00
parent ff05fb14a6
commit 08bd6d963c
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -100,8 +100,6 @@ module.exports = function(RED) {
msg.payload = RED.util.evaluateNodeProperty(node.op1,node.op1type,node,msg);
}
if (node.op1type !== "nul") { node.send(RED.util.cloneMessage(msg)); }
if (node.duration === 0) { node.topics[topic].tout = 0; }
else if (node.loop === true) {
/* istanbul ignore else */
@ -130,6 +128,7 @@ module.exports = function(RED) {
}
}
node.status({fill:"blue",shape:"dot",text:" "});
if (node.op1type !== "nul") { node.send(RED.util.cloneMessage(msg)); }
}
else if ((node.extend === "true" || node.extend === true) && (node.duration > 0)) {
/* istanbul ignore else */