mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
move node.send in exec and httprequest nodes
just in case
This commit is contained in:
parent
415c768ae4
commit
5931e13b9c
@ -152,9 +152,9 @@ module.exports = function(RED) {
|
|||||||
msg.rc = msg3.payload;
|
msg.rc = msg3.payload;
|
||||||
if (msg2) { msg2.rc = msg3.payload; }
|
if (msg2) { msg2.rc = msg3.payload; }
|
||||||
}
|
}
|
||||||
node.send([msg,msg2,msg3]);
|
|
||||||
if (child.tout) { clearTimeout(child.tout); }
|
if (child.tout) { clearTimeout(child.tout); }
|
||||||
delete node.activeProcesses[child.pid];
|
delete node.activeProcesses[child.pid];
|
||||||
|
node.send([msg,msg2,msg3]);
|
||||||
});
|
});
|
||||||
node.status({fill:"blue",shape:"dot",text:"pid:"+child.pid});
|
node.status({fill:"blue",shape:"dot",text:"pid:"+child.pid});
|
||||||
child.on('error',function() {});
|
child.on('error',function() {});
|
||||||
|
@ -263,9 +263,8 @@ module.exports = function(RED) {
|
|||||||
catch(e) { node.warn(RED._("httpin.errors.json-error")); }
|
catch(e) { node.warn(RED._("httpin.errors.json-error")); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
node.send(msg);
|
|
||||||
node.status({});
|
node.status({});
|
||||||
|
node.send(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -280,8 +279,8 @@ module.exports = function(RED) {
|
|||||||
node.error(err,msg);
|
node.error(err,msg);
|
||||||
msg.payload = err.toString() + " : " + url;
|
msg.payload = err.toString() + " : " + url;
|
||||||
msg.statusCode = err.code;
|
msg.statusCode = err.code;
|
||||||
node.send(msg);
|
|
||||||
node.status({fill:"red",shape:"ring",text:err.code});
|
node.status({fill:"red",shape:"ring",text:err.code});
|
||||||
|
node.send(msg);
|
||||||
});
|
});
|
||||||
if (payload) {
|
if (payload) {
|
||||||
req.write(payload);
|
req.write(payload);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user