Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-08-02 15:37:02 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-02 15:37:02 +0400
commit34c750d7a96ad29c023d117f55239b94e90d23d5 (patch)
treeebe524a30083b6450d1ed4ba33753491a52a43a9 /lib
parent6db9e12de5e35f360249f4dab190b3bd052fccf0 (diff)
net: fix .listen({fd:0})
Diffstat (limited to 'lib')
-rw-r--r--lib/net.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index b6cbe4f5410..3244a091096 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -980,7 +980,7 @@ Server.prototype.listen = function() {
if (h instanceof TCP) {
self._handle = h;
listen(self, null, -1, -1, backlog);
- } else if (h.fd && typeof h.fd === 'number' && h.fd >= 0) {
+ } else if (typeof h.fd === 'number' && h.fd >= 0) {
listen(self, null, null, null, backlog, h.fd);
} else {
throw new Error('Invalid listen argument: ' + h);