diff --git a/lib/net.js b/lib/net.js index 47ae799cd1c574..6e99448076ee2c 100644 --- a/lib/net.js +++ b/lib/net.js @@ -991,10 +991,7 @@ function lookupAndConnect(self, options) { // If host is an IP, skip performing a lookup var addressType = cares.isIP(host); if (addressType) { - process.nextTick(function() { - if (self.connecting) - internalConnect(self, host, port, addressType, localAddress, localPort); - }); + internalConnect(self, host, port, addressType, localAddress, localPort); return; }