mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Update 31-tcpin.js (#1235)
TCP-IN: Add check to see if object exists, fixes issue #1222
This commit is contained in:
		
				
					committed by
					
						 Dave Conway-Jones
						Dave Conway-Jones
					
				
			
			
				
	
			
			
			
						parent
						
							d1c42262d6
						
					
				
				
					commit
					e574f4516f
				
			| @@ -461,8 +461,10 @@ module.exports = function(RED) { | ||||
|                         } | ||||
|                     } | ||||
|                     else if (node.splitc === 0) { | ||||
|                         clients[connection_id].msg.payload = data; | ||||
|                         node.send(clients[connection_id].msg); | ||||
|                         if (clients[connection_id]) { | ||||
|                             clients[connection_id].msg.payload = data; | ||||
|                             node.send(clients[connection_id].msg); | ||||
|                         } | ||||
|                     } | ||||
|                     else { | ||||
|                         for (var j = 0; j < data.length; j++ ) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user