Skip to content

Commit

Permalink
refactor: explicitly check pending
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed May 12, 2020
1 parent 3d6f8bc commit 33bca9a
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 @@ -214,7 +214,7 @@ function _connect (client) {
client._socket = null
client._parser = null

if (client[kQueue].length > 0) {
if (client.pending > 0) {
connect(client)
}

Expand Down

0 comments on commit 33bca9a

Please sign in to comment.