diff --git a/lib/agent.js b/lib/agent.js index 507fe86..cbe4fa6 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -136,8 +136,8 @@ class Agent { } // We have been provided a broker URL to use this.mqttClient = mqttClient.newMQTTClient(this, this.config) - // Wait a short random delay to reduce stress on broker when large numbers of devices come on-line - await new Promise(r => setTimeout(r, randomInt(20, 5000))); + // Wait a short random delay to reduce stress on broker when large numbers of devices come on-line + await new Promise(_resolve => setTimeout(_resolve, randomInt(20, 5000))) this.mqttClient.start() this.mqttClient.setApplication(this.currentApplication) this.mqttClient.setProject(this.currentProject)