mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update 31-tcpin.js (#1235)
TCP-IN: Add check to see if object exists, fixes issue #1222
This commit is contained in:
parent
d1c42262d6
commit
e574f4516f
@ -461,9 +461,11 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (node.splitc === 0) {
|
else if (node.splitc === 0) {
|
||||||
|
if (clients[connection_id]) {
|
||||||
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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user