Skip to content

Commit

Permalink
msg generated not received for an inject node
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Riessen committed Dec 26, 2023
1 parent 1c364a3 commit 65fcfea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions red/deadred.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ var DEADRED = (function() {
msg = JSON.parse( JSON.stringify(msg))
}

// message tracing can be deactivated using the __notrace property
// on the msg object.
if ( !msg.__notrace ) {
// don't overwrite the counter
if ( !isNodeDebugCounter(nde) ) {
emitStatusForNode(nde.id, {
"text":"msg received",
"fill":"grey",
"text": "msg " + (nde.type == "inject" ? "generaed" : "received"),
"fill": "grey",
"shape":"ring"
})

Expand Down

0 comments on commit 65fcfea

Please sign in to comment.