TCP node- when resetting, if no payload, stay disconnected

pull/4595/head
Dave Conway-Jones 2024-03-07 16:19:51 +00:00
parent d94d13737f
commit 3ded9de803
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
1 changed files with 1 additions and 0 deletions

View File

@ -582,6 +582,7 @@ module.exports = function(RED) {
const cc = Object.keys(clients).length;
node.status({fill:"green",shape:cc===0?"ring":"dot",text:RED._("tcpin.status.connections",{count:cc})});
if ((host === undefined || port === undefined) && !msg.hasOwnProperty("payload")) { return; }
if (!msg.hasOwnProperty("payload")) { return; }
}
// Store client information independently