mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2454 from node-red/send-metric-fix
Move receive metric position to better reflect async changes
This commit is contained in:
commit
f76edf74f9
@ -193,6 +193,7 @@ Node.prototype.emit = function(event, ...args) {
|
||||
*/
|
||||
Node.prototype._emitInput = function(arg) {
|
||||
var node = this;
|
||||
this.metric("receive", arg);
|
||||
if (node._inputCallback) {
|
||||
// Just one callback registered.
|
||||
try {
|
||||
@ -448,7 +449,6 @@ Node.prototype.receive = function(msg) {
|
||||
if (!msg._msgid) {
|
||||
msg._msgid = redUtil.generateId();
|
||||
}
|
||||
this.metric("receive",msg);
|
||||
this.emit("input",msg);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user