mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	MQTT Client - missing null check
This commit is contained in:
		| @@ -74,7 +74,7 @@ module.exports = { | ||||
|                         client.once(a,b); | ||||
|                     }, | ||||
|                     connect: function() { | ||||
|                         if (!client.isConnected() && !connecting) { | ||||
|                         if (client && !client.isConnected() && !connecting) { | ||||
|                             connecting = true; | ||||
|                             client.connect(options); | ||||
|                         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user