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
This commit is contained in:
parent
98a0909da0
commit
2ca4d9d662
@ -1060,8 +1060,7 @@ var createServerHandle = exports._createServerHandle =
|
|||||||
handle.open(fd);
|
handle.open(fd);
|
||||||
handle.readable = true;
|
handle.readable = true;
|
||||||
handle.writable = true;
|
handle.writable = true;
|
||||||
return handle;
|
assert(!address && !port);
|
||||||
|
|
||||||
} else if (port === -1 && addressType === -1) {
|
} else if (port === -1 && addressType === -1) {
|
||||||
handle = createPipe();
|
handle = createPipe();
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user