mirror of https://github.com/nodejs/node.git
Remove a little redundancy
parent
65dced730f
commit
5171da5a6c
|
@ -651,7 +651,6 @@ function doConnect (socket, port, host) {
|
|||
|
||||
// Don't start the read watcher until connection is established
|
||||
socket._readWatcher.set(socket.fd, true, false);
|
||||
socket._readWatcher.socket = socket;
|
||||
|
||||
// How to connect on POSIX: Wait for fd to become writable, then call
|
||||
// socketError() if there isn't an error, we're connected. AFAIK this a
|
||||
|
@ -660,8 +659,6 @@ function doConnect (socket, port, host) {
|
|||
// Manual Page connect(2) under the error code EINPROGRESS.
|
||||
socket._writeWatcher.set(socket.fd, false, true);
|
||||
socket._writeWatcher.start();
|
||||
socket._writeWatcher.socket = socket;
|
||||
socket._writeWatcher.callback = onWritable;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue