mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
MQTT Client - missing null check
This commit is contained in:
parent
0b7fa1ab5c
commit
c20128b80f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user