mqtt 5.3.3 → 5.3.4

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.3",
4
+ "version": "5.3.4",
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
@@ -248,7 +248,7 @@ export interface IClientOptions extends ISecureClientOptions {
248
248
  */
249
249
  clean?: boolean
250
250
  /**
251
- * 10 seconds, set to 0 to disable
251
+ * 60 seconds, set to 0 to disable
252
252
  */
253
253
  keepalive?: number
254
254
  /**
@@ -2260,9 +2260,9 @@ export default class MqttClient extends TypedEventEmitter<MqttClientEventCallbac
2260
2260
  break
2261
2261
  }
2262
2262
  }
2263
+ this.removeListener('close', remove)
2263
2264
  if (allProcessed) {
2264
2265
  clearStoreProcessing()
2265
- this.removeListener('close', remove)
2266
2266
  this._invokeAllStoreProcessingQueue()
2267
2267
  this.emit('connect', packet)
2268
2268
  } else {