diff --git a/package-lock.json b/package-lock.json index be579fa..0b8439b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ulms/api-clients", - "version": "7.6.1", + "version": "7.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ulms/api-clients", - "version": "7.6.1", + "version": "7.6.2", "license": "MIT", "dependencies": { "axios": "1.6.2", diff --git a/package.json b/package.json index da73769..eae3a5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ulms/api-clients", - "version": "7.6.1", + "version": "7.6.2", "description": "JavaScript API clients for ULMS platform", "keywords": [], "homepage": "https://github.com/foxford/ulms-api-clients-js#readme", diff --git a/src/mqtt.js b/src/mqtt.js index 42f5874..5f4d951 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -242,7 +242,7 @@ class ReconnectingMQTTClient extends MQTTClient { } reconnect() { - if (this.tokenProviderPromise !== null) return + if (this.tokenProviderPromise !== undefined) return this.tokenProviderPromise = this.tokenProvider .getToken()