This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

net: fix listening on FDs on Windows

Fix a bug introduced by 3da36fe of a missed early return of a handle
that needed to be passed to listen.

Fixes test-net-listen-fd0.js on Windows
  • Loading branch information...
orangemocha authored and tjfontaine committed Feb 24, 2014
1 parent 98a0909 commit 2ca4d9d662f638beb1ac99856848a1ac08ba0997
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/net.js
View
@@ -1060,8 +1060,7 @@ var createServerHandle = exports._createServerHandle =
handle.open(fd);
handle.readable = true;
handle.writable = true;
- return handle;
-
+ assert(!address && !port);
} else if (port === -1 && addressType === -1) {
handle = createPipe();
if (process.platform === 'win32') {

0 comments on commit 2ca4d9d

Please sign in to comment.