Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,7 @@ Server.prototype.listen = function(...args) {
throw new ERR_SERVER_ALREADY_LISTEN();
}

var hasCallback = (cb !== null);
if (hasCallback) {
if (cb !== null) {
this.once('listening', cb);
}
var backlogFromArgs =
Expand Down Expand Up @@ -1704,7 +1703,7 @@ if (process.platform === 'win32') {
}
};
} else {
_setSimultaneousAccepts = function(handle) {};
_setSimultaneousAccepts = function() {};
}

module.exports = {
Expand Down