mqtt 5.3.5 → 5.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mqtt",
3
3
  "description": "A library for the MQTT protocol",
4
- "version": "5.3.5",
4
+ "version": "5.3.6",
5
5
  "contributors": [
6
6
  "Adam Rudd <adamvrr@gmail.com>",
7
7
  "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
package/src/lib/client.ts CHANGED
@@ -850,6 +850,7 @@ export default class MqttClient extends TypedEventEmitter<MqttClientEventCallbac
850
850
  this.log(
851
851
  '!!connectTimeout hit!! Calling _cleanUp with force `true`',
852
852
  )
853
+ this.emit('error', new Error('connack timeout'))
853
854
  this._cleanUp(true)
854
855
  }, this.options.connectTimeout)
855
856