Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove superfluous nextTick during server binding
Browse files Browse the repository at this point in the history
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
  • Loading branch information
ry committed Oct 18, 2011
1 parent dbfc819 commit 6cc0c9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/net.js
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6cc0c9e

Please sign in to comment.