diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-02 15:37:02 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-02 15:37:02 +0400 |
commit | 34c750d7a96ad29c023d117f55239b94e90d23d5 (patch) | |
tree | ebe524a30083b6450d1ed4ba33753491a52a43a9 /lib | |
parent | 6db9e12de5e35f360249f4dab190b3bd052fccf0 (diff) |
net: fix .listen({fd:0})
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net.js | 2 |
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); |