Skip to content

Commit

Permalink
net: fix listening on FDs on Windows
Browse files Browse the repository at this point in the history
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 25, 2014
1 parent 98a0909 commit 2ca4d9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 2ca4d9d

Please sign in to comment.