mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Daemon node. Check payload length rather than trim to handle buffer
to close #242 thanks @gbrault
This commit is contained in:
parent
8efc1e5fc8
commit
f63d8d6343
@ -62,7 +62,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
line = bits[0];
|
||||
} else {
|
||||
if (data && data.trim() !== "") {
|
||||
if (data && (data.length !== 0)) {
|
||||
node.send([{payload:data},null,null]);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-daemon",
|
||||
"version" : "0.0.7",
|
||||
"version" : "0.0.8",
|
||||
"description" : "A Node-RED node that runs and monitors a long running system command.",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user