Skip to content

Commit

Permalink
fix: mqtt client end throws error
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jul 22, 2020
1 parent a55f362 commit ef508ea
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion lib/MqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ MqttClient.prototype.cleanName = function (name) {
*/
MqttClient.prototype.close = function (cb) {
if (this.closed) {
throw Error('Client already closed')
cb()
}

this.closed = true
Expand Down
64 changes: 33 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"install": "^0.12.2",
"jsonfile": "^5.0.0",
"morgan": "~1.9.0",
"mqtt": "^2.18.8",
"mqtt": "^4.1.0",
"mqtt-nedb-store": "^0.1.1",
"mqtt-wildcard": "^3.0.9",
"nedb": "^1.8.0",
Expand Down

0 comments on commit ef508ea

Please sign in to comment.