From 6cc0c9e6a9a26d6604990993003aa8c7b8dcae0e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 18 Oct 2011 15:12:16 -0700 Subject: [PATCH] Remove superfluous nextTick during server binding This breaks fork().send({}, server._handle) after server.listen() because server._handle is not set. --- lib/net.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/net.js b/lib/net.js index 9fee92ddf8..dc42fd7c11 100644 --- a/lib/net.js +++ b/lib/net.js @@ -692,9 +692,7 @@ function listen(self, address, port, addressType) { self._listen2(address, port, addressType); }); } else { - process.nextTick(function() { - self._listen2(address, port, addressType); - }); + self._listen2(address, port, addressType); } }