Skip to content

Commit

Permalink
added missing else
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Feb 15, 2019
1 parent bcaf919 commit 0bc8601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Client.prototype.close = function (done) {

if (conn.destroySoon) {
conn.destroySoon()
} if (conn.destroy) {
} else if (conn.destroy) {
conn.destroy()
} else {
conn.end()
Expand Down

0 comments on commit 0bc8601

Please sign in to comment.