mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Final TCP node nits - let 0 do it's thing as per every other timeout
This commit is contained in:
parent
6b4e15dd0f
commit
b43d566968
@ -284,7 +284,7 @@
|
|||||||
$("#node-units").text("chars");
|
$("#node-units").text("chars");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (previous != "sit") { $("#node-input-splitc").val("0"); }
|
if (previous != "sit") { $("#node-input-splitc").val(" "); }
|
||||||
$("#node-units").text("");
|
$("#node-units").text("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -467,10 +467,10 @@ module.exports = function(RED) {
|
|||||||
node.send(RED.util.cloneMessage(clients[connection_id].msg));
|
node.send(RED.util.cloneMessage(clients[connection_id].msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (node.splitc === 0) {
|
// else if (node.splitc === 0) {
|
||||||
clients[connection_id].msg.payload = data;
|
// clients[connection_id].msg.payload = data;
|
||||||
node.send(clients[connection_id].msg);
|
// node.send(clients[connection_id].msg);
|
||||||
}
|
// }
|
||||||
else {
|
else {
|
||||||
for (var j = 0; j < data.length; j++ ) {
|
for (var j = 0; j < data.length; j++ ) {
|
||||||
if (node.out === "time") {
|
if (node.out === "time") {
|
||||||
@ -617,10 +617,7 @@ module.exports = function(RED) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!anyConnected) { clients = {}; }
|
||||||
if (!anyConnected) {
|
|
||||||
clients = {};
|
|
||||||
}
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user