From 33bca9a10e94c43eb55bcb4308505538e8d1467a Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 12 May 2020 13:20:44 +0200 Subject: [PATCH] refactor: explicitly check pending --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 595eeecca9c..98b9f251112 100644 --- a/lib/client.js +++ b/lib/client.js @@ -214,7 +214,7 @@ function _connect (client) { client._socket = null client._parser = null - if (client[kQueue].length > 0) { + if (client.pending > 0) { connect(client) }