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
net: use connect() instead of connect.call()
Use socket.connect() directly.
  • Loading branch information
JacksonTian committed Oct 6, 2018
commit 56857a112a8f03da409d13337f279c2c90da64aa
2 changes: 1 addition & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function connect(...args) {
socket.setTimeout(options.timeout);
}

return Socket.prototype.connect.call(socket, normalized);
return socket.connect(normalized);
}


Expand Down