summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-08-02 13:37:02 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-02 13:37:02 +0200
commit34c750d7a96ad29c023d117f55239b94e90d23d5 (patch)
treeebe524a30083b6450d1ed4ba33753491a52a43a9 /lib
parent6db9e12de5e35f360249f4dab190b3bd052fccf0 (diff)
downloadandroid-node-v8-34c750d7a96ad29c023d117f55239b94e90d23d5.tar.gz
android-node-v8-34c750d7a96ad29c023d117f55239b94e90d23d5.tar.bz2
android-node-v8-34c750d7a96ad29c023d117f55239b94e90d23d5.zip
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 b6cbe4f541..3244a09109 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);