Skip to content

Commit

Permalink
changed event name to connectionError
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinDmello committed Jan 24, 2018
1 parent 343270b commit 08e44d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function onError (err) {
if (this.id) {
this.broker.emit('clientError', this, err)
} else {
this.broker.emit('genericError', this, err)
this.broker.emit('connectionError', this, err)
}
this.close()
}
Expand Down
2 changes: 1 addition & 1 deletion test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ test('testing other event', function (t) {
var broker = aedes()
var client = setup(broker)

broker.on('genericError', function (client, error) {
broker.on('connectionError', function (client, error) {
t.notOk(client.id, null)
t.end()
})
Expand Down

0 comments on commit 08e44d2

Please sign in to comment.